I am trying to generate a bunch of files, some of which may not exist. Now it is normal if some of them do not exist, but I do not want the cat to return an error in this case, if possible. Here is my call:
zcat *_max.rpt.gz *_min.rpt.gz | gzip > temp.rpt.gz
When this command is run, there will be a bunch of files matching * _max.rpt.gz, or * _min.rpt.gz. If the other does not exist, I do not care, I just want to combine what I can. But I get an error message that stops the rest of my code.
What can I do? Thanks.
source share