I have a perl script who takes files from the following path: /home/ict/extract and when i run this perl script -> this perl script has 3 options, if i choose all these 3 options, this script will create 3 files - if i choose 2 options it will generate only 2 files -> on the following path /home/ict/data. This scripts also generates a log file with the followng output:
Log for 2 operations: Type_1 and Type_2 ( if there will be 3 types, we will have another line into this log file)
"Selected Type_1 Selected /home/ict/extract/file.csv as Extract file Created outputfile different_file_name.dat into output directory: /home/ict/data/
Selected Type_2 Selected /home/ict/extract/file2.csv as Extract file Created outputfile different_file_name2.dat into output directory: /home/ict/data/ "
I want to compare if the number of records from the original file ( from /home/ict/extract is the same like the one from /home/ict/data ) ( original file and file processed are the last created ones )
If it's ok, send email with the file from /home/ict/data as attachment
If not, show on display message.
I know i have to use wc -l but i'm new.
Thank you!