I am working on a problem in which I need to merge 4 files (say f1,f2,f3 & f4 log files) & then prepare a final file.
1) If the final file created has size more than 1 GB then need to throw error (display error).
2) Need to check after every merge (say f1 + f2, f1 + f2 + f3) that whether limit of 1 GB has been reached or not.
I am new to shell scripting, so I would appreciate the help.
Also, I need to write code for both UNIX & LINUX. What would be the difference in the code?