Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • The solution works perfectly fine. Thank you. But why not with my way? What was wrong? :o( Commented Dec 16, 2015 at 11:56
  • 2
    @SSHegde for your version if there were no files found, the cat would run with no list of files, default to reading stdin, and wait to copy whatever you typed. Your version would also fail to cat files whose names contained a space. Commented Dec 16, 2015 at 16:15
  • please see my EDIT 4 Commented Dec 16, 2015 at 17:27
  • 1
    @SSHegde different shells may have different buffer lengths for long command lines. It seems that for one shell you can fit all the filenames, but for the other it overflows. Commented Dec 16, 2015 at 18:35