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
  • this will recurse subdirectories (different from their original ls -l) and I think you want -700 and maybe -ls, to emulate the original ls -l behavior. Commented May 10, 2017 at 15:31
  • And I have to use sed... Commented May 10, 2017 at 15:54
  • @JeffSchaller: good points. Updated my answer to include -maxdepth 1 and -ls. Commented May 10, 2017 at 17:32
  • @M.T ok, I just provided an alternative because you didn't specify it was a requirement to use sed. Commented May 10, 2017 at 17:34