Can I use ls -R to show up to 2 folder depth?
- by Aggelos Kolaitis
I have a folder tree that looks like this
main/
main/34532-23423632-2354/what-i-want/sth/other/blah-blah
main/54634-56345634-3422/what-i-want/sth/
....
main/54356-34225675-2345/what-i-want/
I want it to show the tree up to the folder what I want. Because the folders sth, other and so on contain many other things that are useless.
I just want to see what's inside each folder named xxxx-xxxxxxxx-xxxxx.
Is there any way?