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 next 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..
Re: Please help me in using case sensitive command [message #648795 is a reply to message #648794] Thu, 03 March 2016 14:51 Go to previous message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Previous Topic: Accessing bind variables in the UNIX
Next Topic: audit_sys_operations
Goto Forum:
  


Current Time: Thu Mar 28 05:34:36 CDT 2024