Answers for "shell read file separate by line"

18

sh read file line by line

#!/bin/bash
input="/path/to/txt/file"
while IFS= read -r line
do
  echo "$line"
done < "$input"
Posted by: Guest on February-22-2020
0

linux split file by lines

$ split --verbose -l1000 logfile log.
creating file 'log.aa'
creating file 'log.ab'
...
Posted by: Guest on October-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language