Guest User

Untitled

a guest
Aug 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. cat text.txt
  2. echo '123' > text.txt
  3. echo 'abc' >>text.txt
  4. echo '456' >>text.txt
  5.  
  6. cat top.txt /dev/stdin bottom.txt > text.txt
  7. # with cat, - works the same as /dev/stdin
  8.  
  9. {
  10. echo 123 #top.txt
  11. cat
  12. echo 456 #bottom.txt
  13. } > text.txt
  14.  
  15. cat top.txt /dev/stdin bottom.txt > text.txt
  16. gcc whatever
  17.  
  18. #!/bin/bash
  19. cat top.txt /dev/stdin bottom.txt > text.txt
  20. gcc whatever
Add Comment
Please, Sign In to add comment