[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Echoing commands within a shell script



Charlie Brune said:
> Is there a way to have the commands within a shell script "echo" as they
> are being executed?

Add

    set -x

to the script.

You can also add "-x" to the #!/bin/sh line or run it with "sh -x".

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7320             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.