print commands!
I have created a file to run several lines of commands. Example I create a test file with the following lines in it:
-----------
#!/bin/sh
sleep 2
cd /usr/local
-----------
When I double click test & "Run in Terminal" it runs file. What I want to do is to display each line as it is being run. Therefore, I want to see "sleep 2" in the terminal window, then "cd /usr/local", and so on.
What I see now is result generated by a line. Any suggestion?
Kirti
|