Re: printing all of command executed in a script
Hi.
Try a 'script' utility (man script). This will write all that apears on
your terminal to a file which can be viewed or printed or whatever. Simply
type 'script', run your own script (oops, it could be wise to rename your
own script ;-) and when it finishes type ^d (CTRL-d). Then you'll want to
print a file named 'typescript'.
Regards,
Adam
On Fri, 14 Nov 2003, Akira Kitada wrote:
> Hi all.
>
> As the subject above implys, I'd like to print all of commands
> executed in a shell script.
> (because after a while, I always forget all of commands hided in scripts at all.
> )
>
> For example, if I have the following file named 'script',
>
> -- contents of a file --
> ls -l | awk '{print $5}'
> -- end of file --
>
> and would invoked in command line like below,
>
> $ ./script
>
> want to display something like
>
> == ls -l | awk '{print $5}' ==
> 312
> 312
> 123313
> 31232
> 1233
> 12213
>
> Thanks in advance.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: