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*

11
  • 7
    What happens when it "doesn't work"? Error messages? Unexpected output? No output? Please be precise (and edit the answers into your question for all to see.) Commented Dec 16, 2015 at 11:02
  • 2
    If it hangs, then the output of find /home/peter/databases -name "cells.txt" is empty in the ksh script. Commented Dec 16, 2015 at 11:19
  • 1
    What happens when you write /bin/cat? Note that catis a ksh builtin. Commented Dec 16, 2015 at 11:43
  • 1
    @SSHegde What's the output of echo `find /home/peter/databases -name "cells.txt"` in the script? Commented Dec 16, 2015 at 11:48
  • 1
    Oh. So the shell is taking time to build the argument list using the output of find, which you say is nearly a thousand files. Use find's -exec with cat, instead. Commented Dec 16, 2015 at 11:53