![]() |
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 |
| 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 |
| Listing subdirectories and files | senthil_is | Shell Programming and Scripting | 1 | 05-24-2008 08:38 AM |
| du (exclude files) | the_learner | UNIX for Advanced & Expert Users | 1 | 07-17-2007 03:06 PM |
| list largest files in a directory & its subdirectories | igidttam | UNIX for Dummies Questions & Answers | 6 | 09-25-2006 12:31 PM |
| How to exclude files from printed results | umen | UNIX for Dummies Questions & Answers | 2 | 09-18-2005 07:35 AM |
| tar: how to exclude subdirectories? | kymberm | Filesystems, Disks and Memory | 7 | 10-15-2002 04:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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... |
|
||||
|
ls -l d do not work for me
Hi i want to list only the files within a directory and not the sub directories if any. i tried ls -ld but that is not working for me.
this is the result if I use it in usr/bin $ pwd /usr/bin $ ls -ld drwxr-xr-x 4 bin bin 40960 Mar 17 2008 . $ |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|