Home » Infrastructure » Unix » Please help me in using case sensitive command (SunOS)
Please help me in using case sensitive command [message #648794] Thu, 03 March 2016 14:29 Go to previous message
krish96
Messages: 74
Registered: October 2012
Member
Hello All,

Please help me with this

I need to create a cronjob that should delete all files which are older than 30days with '*.txt' and should not delete files with '*TEST*.txt' either file name TEST is upper or test lower case sensitive

here's the script

/DIR -type f -name '*.txt' \! -name '*TEST*.txt' -mtime +30 -exec rm {} \;

Thank you..
 
Read Message
Read Message
Previous Topic: Accessing bind variables in the UNIX
Next Topic: audit_sys_operations
Goto Forum:
  


Current Time: Fri Apr 26 05:20:22 CDT 2024