16 lines
190 B
Bash
16 lines
190 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
#changing the IFS value
|
||
|
|
||
|
IFS.OLD=$IFS
|
||
|
IFS=$'\n'
|
||
|
for entry in `cat /etc/passwd`
|
||
|
do
|
||
|
echo "Values in $entry -"
|
||
|
IFS=:
|
||
|
for value in $entry
|
||
|
do
|
||
|
echo " $value"
|
||
|
done
|
||
|
done
|