Thanks Lugs. On Tue, 2005-05-31 at 21:39 -0600, Michael Gale wrote: > Hello, > > If all you want it to know if any files or directories exist then you > could do the following: > > find . -type f -type d -print | wc -l > > Then will provided a numerical total of the number of files plus the > number of directories located in the current directory. > > Also the "find" command syntax does not suck, that is like say gawk is > only a good field separator. > > Michael > > > Gerald Humphreys wrote: > > Good day everyone. > > > > Please can someone show me an example of looking if there are any files > > and/or sub directorys in a directory, using a script. #!/bin/sh > > > > Regards > > Gerald Humphreys > > > > > > _______________________________________________ > > clug-talk mailing list > > [email protected] > > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > Mailing List Guidelines (http://clug.ca/ml_guidelines.php) > > **Please remove these lines when replying > > _______________________________________________ > clug-talk mailing list > [email protected] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php) > **Please remove these lines when replying
_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

