Search Results

Search: Posts Made By: scotm
2,417
Posted By bakunin
That will probably depend on the ksh involved....
That will probably depend on the ksh involved. ksh93 (at least all the versions i know of) can do brace expansion but with ksh88 it is a compile-time option.

I hope this helps.

bakunin
2,417
Posted By MadeInGermany
Yes I am too much used to bash and zsh. But...
Yes I am too much used to bash and zsh.
But here is an alternative:
echo "\
06 29
06 30
07 01
07 02" |
while read mm dd
do
echo "$mm and $dd"
done
2,417
Posted By Scrutinizer
@MadeInGermany. Brace expansion is not part of...
@MadeInGermany. Brace expansion is not part of POSIX:
$ for DATE in 06{29,30} 07{06,07,08,09}
> do
> echo "$DATE"
> done
06{29,30}
07{06,07,08,09}
2,417
Posted By Scrutinizer
How about: for MD in "06 29" "06 30" "07 01"...
How about:
for MD in "06 29" "06 30" "07 01" "07 02"
do
set $MD
M=$1 D=$2
echo "Month: $M Day: $D"
done


or:
for MD in "06 29" "06 30" "07 01" "07 02"
do
read M D << EOF
...
2,417
Posted By Yoda
How about nested for loop? E.g. for day...
How about nested for loop?

E.g.
for day in 06 07 08 09
do
for month in 06 07
do
<command> $month $day 15
done
done
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 09:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy