Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. $ cat myfile.txt
  2. cat: myfile.txt: No such file or directory
  3. $ cat < myfile.txt
  4. ksh93: myfile.txt: cannot open [No such file or directory]
  5.  
  6. $ echo one > one
  7. $ echo two > two
  8. $ cat one two # cat opens one, shows one, opens two, shows two
  9. one
  10. two
  11. $ cat < one < two # sh opens one then opens two, cat shows stdin (two)
  12. two
  13. $ rm one two
  14. $ echo one > one
  15. $ cat one two # cat opens and shows one, fails to open two
  16. one
  17. cat: two: No such file or directory
  18. $ cat < one < two # the shell opens one then opens two, fails and
  19. # displays an error message, cat gets nothing on stdin
  20. # so shows nothing
  21. ksh93: two: cannot open [No such file or directory]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement