echo command as in windows
Michael Velez
mikev777 at hotmail.com
Thu May 25 17:39:08 UTC 2006
> -----Original Message-----
> From: redhat-list-bounces at redhat.com
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of Jeffrey Beckstrom
> Sent: Thursday, May 25, 2006 11:34 AM
> To: redhat-list at redhat.com
> Subject: echo command as in windows
>
> In windows, you can do "set echo on" so that all commands in
> the bat file are listed. Is there a way to do the same in Linux.
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
To echo commands as they appear, have this as your first line in the script:
#!/bin/bash -v
If you want to see the values of variables at any point in time during
execution, have this:
#!/bin/bash -x
Michael
More information about the redhat-list
mailing list