Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell loop tuple

OLDIFS=$IFS
IFS=','

for i in c,3 e,5
do 
	set -- $i
    echo $1 and $2
done

IFS=$OLDIFS

# Output:
c and 3
e and 5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shell #loop #tuple
ADD COMMENT
Topic
Name
5+5 =