Advertisement
flycat

Построчное чтение файла

Sep 15th, 2023
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. while IFS= read -r line
  2. do
  3.   echo "$line"
  4. done < input_file
  5.  
  6. while IFS= read -r line
  7. do
  8.   echo "$line"
  9. done < <(cat input_file )
  10.  
  11. while IFS= read -r line
  12. do
  13.   echo "$line"
  14. done <<< $(cat input_file )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement