× Discuss about Archiving, Close of Business, Delivery Setup, Security Management System, Global Processing etc…

Command which clear files from &COMO& less date

  • snk
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #17818 by snk
hello,

Need the Command which clear files from &COMO& less then given dates and also check command..

attached command was using by me but it display given date not below..

Thanks

SNK
Attachments:

Please Log in or Create an account to join the conversation.

  • armin
  • armin's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • “So long - and thanks for all the fish!”
More
9 years 11 months ago #17821 by armin
This JQL will work
LIST &COMO& WITH @ID LIKE ...20150727... ONLY

to delete you can
SELECT &COMO& WITH @ID LIKE ...20150727...
DELETE &COMO&
or
EDELETE &COMO& WITH @ID LIKE ...20150727...

but depending on your OS using native list and delete commands would be faster
e.g. for unix and alike
see files:
LS -lrth ./"&COMO&"/*20150727*
delete older than 3 days :
find '&COMO&'/* -mtime +4 -exec rm {} \;

using R11 on Unix
The following user(s) said Thank You: snk

Please Log in or Create an account to join the conversation.

  • snk
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #17822 by snk
THANKS

am using R10 on Linux

Please Log in or Create an account to join the conversation.

Time to create page: 0.032 seconds