I am new to linux. I have a directory in linux with approx 250,000 files I need to find count of number of files matching a pattern.
I tried using following command :
you got "argument too long" because shell expands your pattern to the list of files. try:
find -maxdepth 1 -name '20061101-20131101_kh5x7tte9n_2010_*' |wc -l
please pay attention - pattern is enclosed in quotes to prevent shell expansion