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 08: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 04:18 AM
Compare 2 list and delete certain names eltinator Shell Programming and Scripting 12 08-23-2007 01:45 AM
list the names of users who logoff in last 4 minutes jax_anchal Shell Programming and Scripting 2 10-03-2006 08: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 05:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-17-2004
GMMike GMMike is offline
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
  #2 (permalink)  
Old 11-17-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
find ... | xargs ls -ld
  #3 (permalink)  
Old 11-18-2004
GMMike GMMike is offline
Registered User
  
 

Join Date: Sep 2004
Posts: 32
Hi There,
That worked - Thanks.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0