![]() |
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 |
| list the files but exclude the files in subdirectories | shyjuezy | UNIX for Dummies Questions & Answers | 8 | 10-15-2008 02:42 PM |
| How to copy specified files from list of files from dir A to dir B | pmeesara | Shell Programming and Scripting | 3 | 09-29-2008 04:40 PM |
| How list of files apart from *.class files in certain folder | itsjoy2u | Shell Programming and Scripting | 3 | 09-04-2008 11:28 AM |
| counting a list of string in a list of txt files | Pep Puigvert | UNIX for Dummies Questions & Answers | 4 | 08-15-2008 04:55 PM |
| list files | avadhani | UNIX for Dummies Questions & Answers | 7 | 06-21-2005 03:25 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
List JUST files
Hi,
I am using bash. I have not been able to find a way to list JUST the files (not sub-directories, hidden files, etc) within a directory. Is there a way to do this? The reason I ask is that I am trying to count the number of files within a directory. I believe ls -1 | wc -l is almost what I want, but that counts sub-directories as well. I just want files. Thanks, Mike |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|