Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash read file line by line

#!/bin/bash
while read line
do
  echo $line
done < /path/to/file
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #read #file #line #line
ADD COMMENT
Topic
Name
3+2 =