Very easy at shell prompt try something as follows:
U="one two three"
Code:
for i in $U; do echo $i; done
Or
Code:
U=`cut -d: -f1 /etc/passwd`
for i in $U; do echo $i; done
You can add above lines to script and it should work with both sh and bash shell under any Linux/UNIX/BSD os
