Wednesday, June 26, 2013

Read File using Shell Script

Read File using Shell Script
#!/bin/bashFILENAME=”filename.txt”exec 0< $FILENAMEwhile read LINEdo echo $LINEdone
#!/bin/bash

FILENAME=”filename.txt”

exec 0< $FILENAME

while read LINE

do

echo $LINE

done

No comments:

Post a Comment