×
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
-
Less
More
- Posts: 20
- Thank you received: 0
9 years 11 months ago #17818
by snk
Command which clear files from &COMO& less date was created 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
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
Please Log in or Create an account to join the conversation.
- armin
-
- Offline
- Elite Member
-
- “So long - and thanks for all the fish!”
Less
More
- Posts: 300
- Thank you received: 57
9 years 11 months ago #17821
by armin
Replied by armin on topic Command which clear files from &COMO& less date
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 {} \;
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 {} \;
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
-
Less
More
- Posts: 20
- Thank you received: 0
9 years 11 months ago #17822
by snk
Replied by snk on topic Command which clear files from &COMO& less date
THANKS
am using R10 on Linux
am using R10 on Linux
Please Log in or Create an account to join the conversation.
Time to create page: 0.032 seconds