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:
1
2
3
4
5
Now, modify the script so that it now works like:
1 2 3 4 5
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here