![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Listing subdirectories and files | senthil_is | Shell Programming and Scripting | 1 | 05-24-2008 04:38 AM |
| du (exclude files) | the_learner | UNIX for Advanced & Expert Users | 1 | 07-17-2007 11:06 AM |
| list largest files in a directory & its subdirectories | igidttam | UNIX for Dummies Questions & Answers | 6 | 09-25-2006 08:31 AM |
| How to exclude files from printed results | umen | UNIX for Dummies Questions & Answers | 2 | 09-18-2005 03:35 AM |
| tar: how to exclude subdirectories? | kymberm | Filesystems, Disks and Memory | 7 | 10-15-2002 12:53 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
If I execute the command "ls -l /export/home/abcde/dev/proj/code/* | awk -F' ' '{print $9}' | cut -d'/' -f6-8" it will list all the files in /export/home/abcde/dev/proj/code/ directory as well as the files in subdirectories also
proj/code/test.sh proj/code/test1.c proj/code/unix proj/code/xml_db CPP: SUBDIRECTORY a.out constr.cpp fn_ptr.cpp samp.cpp MYSCRIPTS: SUBDIRECTORY autoTest.sh file2.txt filenames.txt filenames.txt Is there any way to list only the files mentioned in path /export/home/abcde/dev/proj/code/ and should exclude all the files in subdirectories CPP and MYSCRIPTS proj/code/test.sh proj/code/test1.c proj/code/unix proj/code/xml_db Thanks in advance... |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|