Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. while read s
  2. do
  3. echo $s
  4. done < $(tail -f "file.txt")
  5.  
  6. while true
  7. do
  8. read s < "file.txt"
  9. echo $s
  10. done
  11.  
  12. (tail -n 0 -f data.txt) |
  13. while true; do
  14. read LINE;
  15. case $LINE in
  16. QUIT)
  17. echo "exit"
  18. killall tail
  19. exit
  20. ;;
  21. *)
  22. echo $LINE
  23. ;;
  24. esac
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement