Thursday, September 21, 2006

shell script -- while loop read file

#!/bin/sh
# Illustrates use of a while loop to read a file
cat file | \
while read line
do
echo "Found line: $line"
done

No comments: