May 292009
cat /etc/passwd|while read line; do
IFS=":"
read username pass auid agid agroup ahome ashell<<EOF
$line
EOF
echo $username
echo $pass
echo $auid
echo $agid
echo $agroup
echo $ahome
echo $ashell
echo "--------"
done
Simplified version
IFS=":"
read first_name last_name< <(echo "Jeff:Price")
you could use this method on a never ending stream of data
Thats all for now.
Incoming search terms:
- bash delimiter (56)
- bash read delimiter (18)
- reset mysql password (17)
- while read delimiter (13)
- delimiter bash (11)
- bash while read delimiter (10)
- read delimiter (8)
- echo delimiter (5)
- bash echo delimiter (3)
- read in to a delimiter (2)
-
Scott M
-
Jeff Price
-
garywk
-
xleo
