You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,6 @@ After that start learning shell scripting using below topics
109
109
110
110
-**Question:** I would like to delete directories older than two days from /fullbackup/archive path. How do you do it using any scripting methods.
111
111
112
-
-**Problem Statement:** I was trying to use ```find /path/ -type d -mtime +2 -print0 | xargs -r0 rm --```. This command does not works as expcted due to directory modified date for SAT, SUN and MON are Mondays date.
112
+
-**Problem Statement:** I was trying to use ```find /path/ -type d -mtime +2 -print0 | xargs -r0 rm --```. This command does not work as expected due to directory modified date for SAT, SUN and MON moved directories same for all as Monday date.
113
113
114
114
-**How Do you solve it.??** Write Shell Script to accomplish this task. Should run through crontab and clear directories older than two days.
0 commit comments