can you please help me out on this...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting can you please help me out on this...
# 8  
Old 07-12-2008
If your shell support
Code:
find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' >> result.txt

# 9  
Old 07-12-2008
Hi Danmero..

thanks for the reply...
will it work if i will give this..

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

i mean find /A/B/C/{1,3,5,7}.....and the results of 1,3,5,7, will come in result.txt
# 10  
Old 07-12-2008
Can u give idea on this...
# 11  
Old 07-12-2008
Quote:
Originally Posted by sapan123
Can u give idea on this...
don't bump up posts!
# 12  
Old 07-12-2008
Quote:
Originally Posted by sapan123
Can u give idea on this...
Code:
Man... it's just a simple code. It won't break anything.
You can test and see the result.

Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question