Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash for tuple

OLDIFS=$IFS # save the old splitting char
IFS=',' # define the splitting char

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

IFS=$OLDIFS # reset to original char

-----------------------------------------------
RESULT:

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