![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List all files that contain a specific directory | Sat510 | SUN Solaris | 7 | 04-17-2007 07:57 AM |
| cp list of files into another directory | pavan_test | UNIX for Dummies Questions & Answers | 4 | 05-08-2006 06:08 PM |
| list of files in one Directory | venkyA | UNIX for Dummies Questions & Answers | 3 | 06-24-2005 01:49 PM |
| can we list other than c files in a directory with only 'ls' command? | venkat | UNIX for Dummies Questions & Answers | 3 | 03-12-2004 06:17 AM |
| Directory properties | trekker | UNIX for Dummies Questions & Answers | 8 | 11-20-2001 06:55 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
List of files in sub directory along with their properties
How to view the list of the files in the sub directory along with their properties?
I mean <folder1> ........<folder11> ..............<folder111> ......................MyFile_1111.txt ......................MyFile_1112.txt ..............<folder112> ......................MyFile_1121.txt ......................MyFile_1122.txt ........<folder12> ..............<folder121> ......................MyFile_1211.txt ......................MyFile_1212.txt ..............<folder122> ......................MyFile_1221.txt ......................MyFile_1222.txt ........<folder13> ..............<folder131> ..............<folder132> Now, I want to view the list of the MyFile_11* along with their size and other properties. For Ex, when I run the command, I want the o/p to be some where close to the one I mentioned below: -rw-r--r-- 1 mybatch mydev 5564 Nov 13 15:53 /folder1/folder11/folder111/MyFile_1111.txt -rw-r--r-- 1 mybatch mydev 5564 Nov 13 15:53 /folder1/folder11/folder111/MyFile_1112.txt ..... Any help is appretiated. Thanks, Ravi |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Something like this?
Code:
find <folder1> -exec ls -ld {} \;
|
|
#3
|
|||
|
|||
|
Can you please clearly give me the command that I need to execute?
|
|
#4
|
|||
|
|||
|
Since I know the depth where the files are located, I used the
following command and I am able to get the required o/p ls -l folder1/*/*/MyFile_11* -rw-r--r-- 1 mybatch mydev 5564 Nov 13 15:53 /folder1/folder11/folder111/MyFile_1111.txt -rw-r--r-- 1 mybatch mydev 5564 Nov 13 15:53 /folder1/folder11/folder111/MyFile_1112.txt I am sure that this is the right way to achieve, but this is one option I got now. |
|||
| Google The UNIX and Linux Forums |