A quick BASH command to count the number of files in a folder with a specific search term:
ls -d *searchterm* | wc -l
So for example, count all the shapefiles in a folder called spatialdata in your home folder:
~$ pwd /home/al ls -d spatialdata/*shp* | wc -l
Leave a Reply