The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help... no idea what to use dakid Shell Programming and Scripting 4 03-05-2008 08:57 PM
Here is an interesting idea... lm_admin_dh Shell Programming and Scripting 0 06-12-2007 07:15 AM
using case to do this might be a bad idea? Skyybugg Shell Programming and Scripting 12 04-06-2007 11:19 AM
Limitations of awk? Good idea? Bad idea? yongho Shell Programming and Scripting 2 06-08-2005 02:18 PM
an idea? /var/adm/message pressy UNIX for Advanced & Expert Users 3 08-19-2003 04:04 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2008
Read Only
 

Join Date: Oct 2007
Posts: 39
Stumble this Post!
Need some more idea...urgent

Hi friends..
I am using the below command to search few files from many folders which is under one folder..

i mean let say the path is A/B/C...and inside C...i have 1-10 folder...

the below command is working fine....

find /A/B/C -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.txt

this will give me the result from the folder 1-10 which is inside A/B/C and print the file having the above extension into result.txt...


Help needed..

i need the syntax so that my syntax will search the file only from folder 1,3,5,7 and the out put from these 4 folder will be display in the single file i.e result.txt....

the above 1,3,5,7 folders are inside A/B/C
Forum Sponsor
  #2 (permalink)  
Old 07-12-2008
mirusnet's Avatar
Registered User
 

Join Date: Dec 2007
Posts: 127
Stumble this Post!
can you please help me out on this...
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:39 AM.


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

Content Relevant URLs by vBSEO 3.2.0