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*

3
  • 1
    ls -1 will list the contents of directories if your find happens to discover one. Perhaps you want ls -1d or find ... -type f. But the whole thing will collapse if any of the filenames contains a space anyway. Commented Jan 5, 2016 at 15:16
  • I'm aware of that, I'm waiting OP to answer my comment... Commented Jan 5, 2016 at 15:31
  • This is a perfect solution, Sorry for the slow reply Filenames contain no spaces, This give me just what i was after. I was going to start filtering it down by file type, If you wanted to amend to include a filetype i.e. .xml Then that would be perfect. Its not required so if it cannot be done without re-writing then dont worry, But it would help when we have a server crash and am locatnig scripts that have not processed there IN Data. Commented Jan 13, 2016 at 17:05