Hi,
I just started AWK, so i don't know much about it.
I have a tool which merges two new files and a old file (if it exists). The file created can be downloaded (ftp). This works fine and can't be changed.
I want to manipulate the file created so that when it's empty (after merging) it should hold a line with "empty file". It can happen that the file is not being downloaded in time and has a "empty file" line before a new merging occurs, so when the new files are not empty, it should be removed. Also i want to end up with one "empty file" line, in case the new files are also empty.
I hope i made it clear,
thanks in advance
I just started AWK, so i don't know much about it.
I have a tool which merges two new files and a old file (if it exists). The file created can be downloaded (ftp). This works fine and can't be changed.
I want to manipulate the file created so that when it's empty (after merging) it should hold a line with "empty file". It can happen that the file is not being downloaded in time and has a "empty file" line before a new merging occurs, so when the new files are not empty, it should be removed. Also i want to end up with one "empty file" line, in case the new files are also empty.
I hope i made it clear,
thanks in advance