Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

read -r bash from file

#!/bin/bash
### Read File Line By Line with Bash Script File
filename="/home/ismail/names.txt"

while read line; do 
   echo $line; 
done < $filename
Source by linuxtect.com #
 
PREVIOUS NEXT
Tagged: #read #bash #file
ADD COMMENT
Topic
Name
6+9 =