The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2006
Registered User
 

Join Date: Oct 2006
Location: NewYork
Posts: 21
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
Reply With Quote
Forum Sponsor
  #2  
Old 11-13-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
Something like this?
Code:
find <folder1> -exec ls -ld {} \;
Reply With Quote
  #3  
Old 11-13-2006
Registered User
 

Join Date: Oct 2006
Location: NewYork
Posts: 21
Can you please clearly give me the command that I need to execute?
Reply With Quote
  #4  
Old 11-13-2006
Registered User
 

Join Date: Oct 2006
Location: NewYork
Posts: 21
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0