Date: Wed, 11 Sep 2002 12:55:39 -0700 From: Mike Hogsett <hogsett@csl.sri.com> To: "How Can ThisBe" <howcanthisbe300@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: count files in a directory with ls? Message-ID: <200209111955.g8BJtdP8065907@axp.csl.sri.com> In-Reply-To: Message from "How Can ThisBe" <howcanthisbe300@hotmail.com> of "Wed, 11 Sep 2002 19:53:09 -0000." <F27UtI9dm5UxP9Fekza0000013f@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
ls | wc -l > How can I return the number of files in a directory? I was hoping for some > kind of ls switch but did not find one. I did get excited about du -c but > this returns a total of bytes, not files. > > Any ideas? I thought this would be have been something simple to find, I > guess I may have just been looking in the wrong direction. > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209111955.g8BJtdP8065907>