PistolPete1999
Technical User
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
A=$*
B=""
shift 2
for i in $A
do
B="$i $B"
done
echo $B
Any help would be appreciated
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
A=$*
B=""
shift 2
for i in $A
do
B="$i $B"
done
echo $B
Any help would be appreciated