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
Best way to list a directory's contents? bbilheimer UNIX for Dummies Questions & Answers 6 02-05-2008 07:05 AM
SED To insert Directory Contents to file NomDeGuerre Shell Programming and Scripting 3 03-12-2007 09:41 PM
Remove contents of directory, but not directory pdc Shell Programming and Scripting 8 12-04-2005 10:57 AM
Message trying to list contents of directory sallender UNIX for Dummies Questions & Answers 1 10-19-2005 05:22 AM
Unable to view contents of a directory maddave UNIX for Dummies Questions & Answers 13 10-24-2001 10:50 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-30-2007
Registered User
 

Join Date: Jan 2007
Posts: 5
Angry list contents of directory

I want to list the contents of a directory, but I do not want to use the ls, is there another way??
Reply With Quote
Forum Sponsor
  #2  
Old 01-30-2007
Registered User
 

Join Date: Jan 2007
Posts: 5
find

that will give you the contents of the subdirectories as well, is that OK?
Reply With Quote
  #3  
Old 01-30-2007
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Code:
$ echo *
Carl
Reply With Quote
  #4  
Old 01-30-2007
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
Quote:
Originally Posted by Dbecker
find

that will give you the contents of the subdirectories as well, is that OK?
To limit it to the current directory, you can run it with these options:
Code:
find -maxdepth 1
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:21 PM.


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