How to list the deepest files' location
1 Attachment(s)
Attachment 9089
Like this picture I only want to list the deepest files' location to the file as *\*\89 *\*\111 ..... (No "") Thanks Thanks all of you But the "89" is only an example And Before this may be I don't know any name of the folder. Then how can it be. Thanks |
|
I am not very sure if this is what you want
Code:
#tree -f /path/to/dir | grep 89 Code:
#tree /path/to/dir | grep 89 <--but it will not show full path |
Yeah deep27ak, that's what on this page:
http://stackoverflow.com/questions/2...rent-directory using tree command you can list the deepest files in a directory.. |
Try xargs with null.
Say-- Quote:
Hope that helps. Goodluck. |
Thanks all of you
But the "89" is only an example And Before this may be I don't know any name of the folder. Then how can it be. Thanks |
Quote:
:) Meantime test that code under /proc. Look for a folder named /stat somewhere below it and list the contents. Say try this code: Quote:
Enjoy. |
Thanks, I do multiple this command and can get the solution
|
All times are GMT -5. The time now is 08:37 PM. |