1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/bash while [ -n "$1" ] do echo "Current Parameter: $1 , Remaining $#" #Pass $1 to some bash function or do whatever shift 5 if [ $? -ne 0 ] then break fi done |
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/bash while [ -n "$1" ] do echo "Current Parameter: $1 , Remaining $#" #Pass $1 to some bash function or do whatever shift 5 if [ $? -ne 0 ] then break fi done |