Can I use ls -R to show up to 2 folder depth?
Posted
by
Aggelos Kolaitis
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Aggelos Kolaitis
Published on 2012-07-09T07:26:32Z
Indexed on
2012/07/09
9:22 UTC
Read the original article
Hit count: 299
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?
© Ask Ubuntu or respective owner