Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. echo 1111111 > z.txt
  2. exec {newFD}< <(tail -f -c +0 "z.txt")
  3.  
  4. while IFS= read -r LINE0 <&${newFD}
  5. do
  6. printf '%s' "$LINE0"
  7. done
  8.  
  9. echo 1111111 > z.txt
  10. while IFS= read -r LINE0 <&${newFD}
  11. do
  12. printf '%s' "$LINE0"
  13. done {newFD}< <(tail -f -c +0 "z.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement