1

line count

view story
linux-howto

http://www.unix.com – Hi In my directory i have file of many days , i want to count the number of line of all the files of todays date. every file will have date component on it for eg. V5_T_RIO_TAFM_20120905070015847.LOG from the file name 20120905- > this show that file is of today's date . I have written the below command which is giving wrong outpput Code: ls -ltr *_20120905* | wc -l | awk '{sum += $0} END {print sum}' Can you let me know what is wrong in it (HowTos)