Saturday, August 16, 2014

Read a file line by line in unix - bash

#!/bin/bash

FILE=input.txt

while read line
do
echo $line
done< $FILE

No comments:

Post a Comment