Nov 18, 2002 #1 saw15 Technical User Joined Jan 24, 2001 Messages 468 Location 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 Joined Feb 19, 2001 Messages 237 Location 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 Joined Oct 1, 2002 Messages 48 Location US about a million ways to do this one. ls -l *.20021001.* |wc -l ls -l|egrep -c 20021001 Upvote 0 Downvote