Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

read file using shell script

#!/bin/bash
input="/path/to/txt/file"
while IFS= read -r line
do
  echo "$line"
done < "$input"
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #read #file #shell #script
ADD COMMENT
Topic
Name
8+9 =