« Linux Allocated Devices list | Main | 419eater.com »

Process each line in shell

This works nicely when a 'for' loop would split lines into fields :

cat /etc/passwd | while read line
do
echo $line
echo ------
done

About

This page contains a single entry from the blog

The previous post in this blog was Linux Allocated Devices list.

The next post in this blog is 419eater.com.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33