Directory File Count from Command Line

Posted . Visible to the public.

To quickly get a count of the number of files in a directory:
ls -1 targetdir | wc -l

Matt Tew
Last edit
Tags
Posted by Matt Tew to Matt Tew's deck (2012-05-17 16:45)