(1)
#!/bin/bash
while read line
do
echo $line
done < file
(2)
#!/bin/bash
cat file | while read line
do
echo $line
done
(3)
for line in `cat file`
do
echo $line
done
(1)
#!/bin/bash
while read line
do
echo $line
done < file
(2)
#!/bin/bash
cat file | while read line
do
echo $line
done
(3)
for line in `cat file`
do
echo $line
done