A2osX/TESTS/SHIFTTEST2.txt

35 lines
570 B
Plaintext
Raw Normal View History

NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
2019-01-16 04:50:18 +00:00
#This is a test of passing args
#Echo $0 should be name of script
#
2019-01-16 04:50:18 +00:00
ECHO 0 Parm is $0
ECHO 1 Parm is $1
ECHO 2 Parm is $2
ECHO 3 Parm is $3
ECHO 4 Parm is $4
ECHO 5 Parm is $5
ECHO 6 Parm is $6
ECHO 7 Parm is $7
ECHO 8 Parm is $8
ECHO 9 Parm is $9
ECHO Parm Count is $#
2019-01-16 04:50:18 +00:00
Echo All Parms is $*
echo Process ID is $$
echo begin shift test - SHIFT 3 TIMES
echo $*
shift
echo $*
2019-10-29 21:43:50 +00:00
echo Shifting out 4
shift 4
2019-01-16 04:50:18 +00:00
echo $*
2019-10-29 21:43:50 +00:00
echo Shifting out 2
shift 2
2019-01-16 04:50:18 +00:00
echo $*
Echo Done
MAN
TEXT /MAKE/USR/SHARE/TESTS/SHIFTTEST2