Hello All,
I would like to rename files. Let me example what I am trying to do.
I have files coming in daily;
testfile200803101_508400.ZIP.PGP
testfile200703005_879850.ZIP.PGP
These are example only. one thing is for sure that it will start with "testfile" and ends with ".ZIP.PGP"
I would like to rename each file to two different name e.g.
testfile200803101_508400 and testfile200803101.ZIP
I have tried to use sed
outfile=$(echo $INBOUND/$FILE_NAME | sed s/\.pgp/\.zip/)
but this will only replace pgp with zip
Thanks for your help
I would like to rename files. Let me example what I am trying to do.
I have files coming in daily;
testfile200803101_508400.ZIP.PGP
testfile200703005_879850.ZIP.PGP
These are example only. one thing is for sure that it will start with "testfile" and ends with ".ZIP.PGP"
I would like to rename each file to two different name e.g.
testfile200803101_508400 and testfile200803101.ZIP
I have tried to use sed
outfile=$(echo $INBOUND/$FILE_NAME | sed s/\.pgp/\.zip/)
but this will only replace pgp with zip
Thanks for your help