1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 days=({Mon,Tues,Wednes,Thurs,Fri,Satur,Sun}day)
20 echo ${days[${count}]}
21 echo ${days[$((count++))]}
22 echo ${days[$((count++))]}
30 echo ${days[$((count++))]/foo/bar}
31 echo ${days[$((count++))]/foo/bar}
32 echo ${days[$((count++))]/foo/bar}
35 echo ${days[count++]/foo/bar}
36 echo ${days[count++]/foo/bar}
37 echo ${days[count++]/foo/bar}
40 echo "${days[${count}],,}, ${days[$((count++))],,}, ${days[$((count++))],,}"
41 echo "${days[${count}],,}, ${days[$((count++))],,}, ${days[$((count++))],,}"
44 echo "${days[${count}],,}, ${days[$((count++))],,}, ${days[$((count++))],,}"
45 echo "${days[${count}]/foo/bar}, ${days[$((count++))]/foo/bar}, ${days[$((count++))]/foo/bar}"
48 echo ${days[$((count++))]:2}
49 echo ${days[$((count++))]:2}
50 echo ${days[$((count++))]:2}
53 echo ${days[count++]:2}
54 echo ${days[count++]:2}
55 echo ${days[count++]:2}
58 echo ${days[$((count++))]#?}
59 echo ${days[$((count++))]#?}
60 echo ${days[$((count++))]#?}
63 echo ${days[count++]#?}
64 echo ${days[count++]#?}
65 echo ${days[count++]#?}