Hey Fellas,
finally figured the right code for this...
#!/bin/sh
clear
shift 2
last=$#
while [ $last -gt 0 ]
do
eval 'v=\$$last"
echo -n "$v"
last=$(($last-2))
done
echo
thanks to those people who tried to help out :-)
Hey Boris,
thanks for replying, its a good script but when i changed the $# to $*, i got a msg saying too many arguements and i noticed that ure using KORN, im using bash, unless im wrong, they re different right?
Any Solutions?
Thanks
How do i skip every other parameter? like for example
REVERSEM K B Z D E K "G," M O
it should display O G, E Z and skips the first two parameters
*REVERSEM is the name of the script
i got the first two parametrs removed working but struggled with skipping every other parameter...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.