On the topic of BASH loops

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Fri Aug 20 00:18:42 UTC 2004


dates="12 Oct:13 Oct:14 Oct"

OIFS=$IFS
IFS=":"
for f in $dates; do
 	echo -e "A date:\t$f"
done
export IFS=$OIFS

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list