Hi All,
I need to get the count of records in the file, if the passing parameter matches with the list of records in the file. Below is my example
source file: Test1.dat
20120913
20120913
20120912
20120912
20120912
20120912
20120912
20120913
20120913
20120912
In my script I am deriving the processing date. I need to check how many files are there with the current processing date. based on the return count I need to send a mail.
For the above file, If I pass 20120912 as parameter
Result
count_files=6
Please help me how to write a Awk script for this requirement.
Thanks,
Chandu.