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.

2
  • I need to use one command as I am going to call it from php. I like that in your solution I don't need to know the tree structure. It will list weekly and daily. I haven't try it though. Commented Apr 3, 2012 at 0:29
  • 1
    as one command just to : bash -c 'shopt -s globstar; ls -1 **/{daily,weekly}/*' Commented Apr 4, 2012 at 20:00