hi all:
I got an interesting shell script requirement
from a friend of mine today (he was asked to write this
script during an interview in a s/w company)
-------------------- cut --- cut ---------------------------
I was asked to write a shell script that will display
its arguments in the reverse order. If you name your
shell script file as tst, then the program
should behave as follows:
$ tst a b c d
d c b a tst
(Note : Avoid using UNIX utilities. There
should be no restrictions on the number of
parameters this script can handle.)
-------------------- cut --- cut --------------------------
well I have one solution to this; which I have sent it to
Sandesh([EMAIL PROTECTED]) and the same will be posted back
on the ML in a day or two. By that time I would like to
see few more solutions (give it a try) to this script problem.
Please note that we should not be using
other UNIX *utilities* :-)
Regards
Binny
===========================================================================
Be afraid, very afraid; for I have root access.
===========================================================================
Binny Raphael
System Administrator
RIL
email : [EMAIL PROTECTED]
: [EMAIL PROTECTED]
===========================================================================