pretty

Showing posts with label loop. Show all posts
Showing posts with label loop. Show all posts

Monday, January 27, 2014

Read a file in bash

Read a file line by line in bash


while read line           
do           
    echo $line

done < test.txt   

oneliner version

while read line ; do echo $line ; done < test.txt