I am trying to count number of record in a file and then append a trailer to that file.
Trailer should e in the format as below
T| <count of records>
count of records ---> this count should be one less than the actual count obtained, as the file will have a header.
Hi Everyone,
Do I need to provide record length as Record length + 4 when I'm transferring a variable block files from unix to mainframe through ftp?
For example, I have a file in unix (ebcidic converted) with maximum record length of 100.
First post here, so hopefully all guidelines are followed, and thanks in advance for any replies.
I'm working on a shell script(BASH) that processes a csv file and performs various tasks with the data. All is well, except I want to use 'tee' to send output from 'wc' to a file as well as pipe it to 'cut'.
Hi ,
I am having a text file with several records., it has a header record and trailer record. The header record has the number of rows (records) found in the text file and time-stamp.
Hi ,
I have a directory where i recive file at every 3-5 min throughout the days. I want to count number of files come per hour and per day.
i want to count number of record in the file for whole day.
How can i achive .
Regards
Rajesh
Hello,
I have one requirement. We are getting fixed length file with trailer record on it.
We need to cleanse,validate and process the file.
As part of validation we have to do duplicate file check based on file name and trailer record.
I want to add the file name as last column to file, so that I can use the filed for validation purpose.
Are they only the Unix’s developed by Bell Labs or do the SCO ones count too? Are there others?
Hi All,
i am taking end of records using tail command got the out is "END OF FILE. ROW COUNT: 10"
and record count in the file is 3. while append the both data into test2.txt file,it's append like
Code:
END OF FILE. ROW COUNT: 108
my output should be in the test2.txt file
Code:
END OF FILE.
I try to count number of lines of a data.txt file and then if number of lines is greater than 1 then email me the file.
I could not find what is wrong with my code, hope you can point out the mistake i made
Code:
#!