![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| list the files but exclude the files in subdirectories | shyjuezy | UNIX for Dummies Questions & Answers | 8 | 10-15-2008 01:42 PM |
| How to list top 10 files | satish_1983 | UNIX for Dummies Questions & Answers | 4 | 10-26-2007 08:05 AM |
| list of files | bkan77 | UNIX for Advanced & Expert Users | 7 | 08-15-2007 11:09 AM |
| list files | alisevA3 | UNIX for Dummies Questions & Answers | 2 | 03-21-2007 02:40 AM |
| list files | avadhani | UNIX for Dummies Questions & Answers | 7 | 06-21-2005 02:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I want to listed out only the files from a directory which consist of both sub directories as well files in each sub directories.
i want to listed out only the files from all the subdirectories. can anyone help me..... |
|
||||
|
It's not clear what you're asking, but maybe this will give you some ideas:
Code:
# Find only directories under (and including) $DIR find $DIR -type d # Find all files under $DIR (and files under all subdirs) find $DIR -type f # Find only directories that are in $DIR (but NOT in subdirs) find $DIR/* -type d -prune # or (if your "find" supports it...YMMV) find $DIR -type d -maxdepth 1 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|