From ian.bruntlett at gmail.com Sun Feb 2 20:56:26 2020 From: ian.bruntlett at gmail.com (Ian Bruntlett) Date: Sun, 02 Feb 2020 20:56:26 -0000 Subject: [TynesideLUG] Counting files in a directory Message-ID: Hi, This is a message for Jimmy, about our conversation at the weekend. To count the files and folders in a directory, use:- $ ls -1 | wc -l To count folders:- $ ls -d1 */ | wc -l HTH, Ian -- -- ACCU - Professionalism in programming - http://www.accu.org -- My writing - https://sites.google.com/site/ianbruntlett/ -- Free Software page - https://sites.google.com/site/ianbruntlett/home/free-software