i-bash/tests/dollar-star3.sub
2009-09-12 16:47:00 +00:00

18 lines
270 B
Text

IFS=/
#file=/mnt/cdrom/RedHat/RPMS
#recho "${file[*]:0:3}"
i[0]=fooq
i[1]=
i[2]=barq
i[3]=
recho "${i[*]:0}"
recho "${i[@]:0}"
recho "${i[*]/q/!}"
recho "${i[@]/q/!}"
recho "${i[*]#?}"
recho "${i[@]#?}"
# Need to complete this with case-modifying expansion examples