RE: echo command as in windows





-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Jeffrey Beckstrom
Sent: Thursday, May 25, 2006 11:34 AM
To: redhat-list@xxxxxxxxxx
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@xxxxxxxxxx?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

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: echo command as in windows
    ... echo command as in windows ... In windows, you can do "set echo on" so that all commands in the bat ... Are you using bash? ... University of Leicester, Leicester, LE1 7RH, UK ...
    (RedHat)
  • Re: echo command as in windows
    ... echo command as in windows ... In windows, you can do "set echo on" so that all commands in the bat ... Are you using bash? ... University of Leicester, Leicester, LE1 7RH, UK ...
    (RedHat)
  • RE: echo command as in windows
    ... echo command as in windows ... In windows, you can do "set echo on" so that all commands in the bat ... Are you using bash? ...
    (RedHat)
  • RE: echo command as in windows (answer to 2nd question)
    ... echo command as in windows ... Can you recommend some good sources of information on this ... type of stuff so that I don't keep bothering the list? ...
    (RedHat)
  • RE: echo command as in windows
    ... echo command as in windows ... In windows, you can do "set echo on" so that all commands in the bat ... Are you using bash? ...
    (RedHat)