UNIX and Shell please include script and Consider the following script: #!/bin/bash list=$1 for i in $list do echo $i done In this form it works thusly: $ ./ttt.sh 1,2,3,4,5 1,2,3,4,5 Modify the...


UNIX and Shell


please include script and


Consider the following script:


#!/bin/bash


list=$1


for i in $list


do


echo $i


done


In this form it works thusly:


$ ./ttt.sh 1,2,3,4,5


1,2,3,4,5


Modify the “list=$1” line so that it works like the below (Hint: process substitution, stream editing).


Just change the line, do not add any other line/s; and do not use the IFS specification:


$ ./ttt.sh 1,2,3,4,5


1


2


3


4


5


Now, modify the script so that it now works like:


$ ./ttt.sh 1,2,3,4,5


1 2 3 4 5



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here