Pipe ls to wc to get file count in your directory
Submitted by jeff on Tue, 05/27/2008 - 17:30.
ls does not give you a file count. To get a file count you can pipe ls into the wc command. I guess wc means “word count”.
ls | wc -l
Recent blog posts
- Amazon S3 Website CNAME
- Button labels for checkout
- Insert html django contrib messages
- Twitter Bootstrap not working with LESS.js
- Javascript libs that offer basic subset of jquery features
- Building the donor-matic
- Playing with free Google Map alternatives.
- Some flows are not as complicated as they appear
- Form design crib sheet
- Script to get IE9 Windows Virtual PC images into Virtual Box