New file should store all the 7 existing filenames and their record counts and ftp th

Hi,

I need help regarding below concern.

There is a script and it has 7 existing files(in a path say,. usr/appl/temp/file1.txt) and I need to create one new blank file say �file_count.txt� in the same script itself.

Then the new file <file_count.txt> should store all the 7 filenames and their record counts and ftp them to one server.

Content of New file <file_record_count.txt> should be like this below..

File1 <actual_record_count>
File2 <actual_record_count>
File3 <actual_record_count>
File4 <actual_record_count>
File5 <actual_record_count>
File6 <actual_record_count>
File7 <actual_record_count>

Thanks in advance!!!!

Regards,
Pr....

$ wc -l File[1-7] | sed '$d' > file_count.txt 

Then include the ftp code to transfer this file ..