ghostdog74 September 14, 2008

you can use IFS

IFS=":"
while read a b c d e f g
do
echo $a $b #and so on
done < /etc/passwd

Reply

ravinder June 6, 2010

Hi Ravinder this side, the script provide by you is quite usful for me thanx alot.

I need some more help regarding this hope you will be there to help me.

Reply

Tomer June 14, 2010

Thanks for you clear and exact examples

Reply

Leave a Comment

You can use these HTML tags and attributes for UNIX commands or shell scripts: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 7 + 12 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a script.



Tagged as: , , , , , , , , , , , ,