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
then
        echo "\033]0;$1\007";
fi

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>