my first shell script

I have a new job, which involves working on an AIX box over SSH. It the first time I’ve used command line to do everything I do in a day and its an education – especially as I’m new to korn shell.

Today I wrote my first shell script, it sets the title of my putty window so I don’t get confused which window is which. Here it is:

echo "\033]0;$PWD\007";
if test -n $1
        echo "\033]0;$1\007";

Leave a Reply

Please use [code] and [/code] around any source code you wish to share.