]>
Commit | Line | Data |
---|---|---|
3185942a JA |
1 | IFS=/ |
2 | #file=/mnt/cdrom/RedHat/RPMS | |
3 | #recho "${file[*]:0:3}" | |
4 | ||
5 | i[0]=fooq | |
6 | i[1]= | |
7 | i[2]=barq | |
8 | i[3]= | |
9 | recho "${i[*]:0}" | |
10 | recho "${i[@]:0}" | |
11 | ||
12 | recho "${i[*]/q/!}" | |
13 | recho "${i[@]/q/!}" | |
14 | ||
15 | recho "${i[*]#?}" | |
16 | recho "${i[@]#?}" | |
17 | ||
18 | # Need to complete this with case-modifying expansion examples |