Help getting filemask correct for rm command
Hi,
I have a requirement to remove files from a remote directory that meet the following conditions:
But I'm unable to get the 3rd criteria to work. I've tried this but get an error message:
Is this possible to do with the
I have a requirement to remove files from a remote directory that meet the following conditions:
- are older than 3 days
- have an extension of *.pgp
- do NOT contain "KPG" in the file name
rm *.pgp<3D
rm *.pgp<3D|*KPG*
rm
command? Thank you for your time.