<quote who="Jeff Waugh">

> cat filename | while read i
> do
>     echo $i;
> done

Note that you can save the cat by doing this:

  while read i
  do
      echo $i;
  done < filename

I just find it less clear. :-)

- Jeff

-- 
   "Everyone says they like Free Software - not everyone is ready to make   
         the tough choices to make it happen." - Maciej Stachowiak          
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to