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
Command to list directory names only stevefox UNIX for Dummies Questions & Answers 6 11-29-2007 05:06 PM
passing a list of dynamic names to a "PS" command in shell script? sachin.tendulka Shell Programming and Scripting 3 11-21-2007 01:18 AM
Compare 2 list and delete certain names eltinator Shell Programming and Scripting 12 08-22-2007 09:45 PM
list the names of users who logoff in last 4 minutes jax_anchal Shell Programming and Scripting 2 10-03-2006 04:07 AM
Reading file names from a file and executing the relative file from shell script anushilrai Shell Programming and Scripting 4 03-10-2006 02:25 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-17-2004
Registered User
 

Join Date: Sep 2004
Posts: 32
How to Pass a list of file names to ls

Hi
I have a list of file names generated from a find command.
The list does not show complete file information.
I would like to do this:

generate the list of file names
pass each file name generated to ls -l command

what is the best way to do this without a script?

I have tried something like this but it didn't work

find.... > ls -l $1

Thanks for your help.

GMMike
Reply With Quote
Forum Sponsor
  #2  
Old 11-17-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,609
find ... | xargs ls -ld
Reply With Quote
  #3  
Old 11-18-2004
Registered User
 

Join Date: Sep 2004
Posts: 32
Hi There,
That worked - Thanks.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:07 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