siva sankar wrote: > Hi..All ! > > I want to know the exact number of files that i have stored in some > directory, > tell the command, which displays the number of files in a directory. > I dont know whether the commend is there to display the number of files or > not, If there please send me ... >
All of my file-names are *nix style... without any whitespace in them, so each filename is exactly one word long. This being the case, $ ls | wc -w ...will present me with the number of files (including all directories, which are files too) in the directory. If I want to know the total number of files contained in all subdirectories as well, I can use: $ ls -R | wc -w You might want to consider reading the man pages for ls and wc. Lots of info. -- -wittig http://www.robertwittig.com/ . http://robertwittig.net/ To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/LINUX_Newbies/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
