Nov 18, 2002 #1 saw15 Technical User Jan 24, 2001 468 US I need to count the number of files that are select when using the following command: ls -l *.20021001.* There are literally thousands of files, and I need to know the specific number of files matching this criteria. Any help is much appreciated.
I need to count the number of files that are select when using the following command: ls -l *.20021001.* There are literally thousands of files, and I need to know the specific number of files matching this criteria. Any help is much appreciated.
Nov 18, 2002 #2 alray MIS Feb 19, 2001 237 GB Hi, Try "ls -l|grep *.....*|wc -l" this should give you a count of the matching files. Hope this helps. Ray Upvote 0 Downvote
Hi, Try "ls -l|grep *.....*|wc -l" this should give you a count of the matching files. Hope this helps. Ray
Nov 20, 2002 #3 hiwaycool Programmer Oct 1, 2002 48 US about a million ways to do this one. ls -l *.20021001.* |wc -l ls -l|egrep -c 20021001 Upvote 0 Downvote