Advertisement
Guest User

paste vs cat vs awk demo

a guest
Feb 14th, 2013
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.2$ seq 5 > first_file
  2.  
  3. bash-4.2$ seq 6 10 > second_file
  4.  
  5. bash-4.2$ paste first_file second_file
  6. 1 6
  7. 2 7
  8. 3 8
  9. 4 9
  10. 5 10
  11.  
  12. bash-4.2$ cat first_file second_file
  13. 1
  14. 2
  15. 3
  16. 4
  17. 5
  18. 6
  19. 7
  20. 8
  21. 9
  22. 10
  23.  
  24. bash-4.2$ awk '1' first_file second_file
  25. 1
  26. 2
  27. 3
  28. 4
  29. 5
  30. 6
  31. 7
  32. 8
  33. 9
  34. 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement