Advertisement
D0cEvil

Bash - Read file line by line

Jan 4th, 2023
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | Software | 0 0
  1. #Считать файл построчно
  2. #!/bin/bash
  3. FILE=$1
  4. while read line; do
  5.      echo "This is a line : $line"
  6. done < $FILE
  7. ###################
  8. #run
  9. #./script /target/file
  10. ###################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement