I find bash as one of the most fluid languages. Problem is when ever I come accross people that say they know bash but do not use it because they prefere perl or php. They say they use perl or php because of easy database access and how you can split strings. Today I will explain how to split a string in bash, from a stream even, so you don't have to load whole files. I will use /etc/passwd as an example so you can follow along.
cat /etc/passwd|while read line; do
read username pass auid agid agroup ahome ashell<<EOF
read first_name last_name< <(echo "Jeff:Price")
you could use this method on a never ending stream of data
Thats all for now.Sponsored Link