Answers for "bash get line from file"

9

bash read a 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

bash get line from file

sed 'NUMq;d' file
Posted by: Guest on October-18-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language