Redhat delete files by date
Elias Dorneles Elias Dorneles 20k 10 10 gold badges 71 71 silver badges 99 99 bronze badges. Prahalad Gaggar Piyush Wandhare Piyush Wandhare 1 1 1 bronze badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. What do you do then? Ex:- Delete all files and folders from a specified path older than Jan Save my name, email, and website in this browser for the next time I comment.
Facebook Twitter Instagram. TecAdmin Home Ubuntu Some times parent directory modification date can be older than child directories. In that case recursive delete can remove child directory as well. Related Posts. Handling filenames with spaces in Linux 3 Mins Read.
Anoop on September 27, am. Antonio on October 21, am. Using timestamps gets rid of all hassles with working with dates directly leap year, different days in months, etc. If you prefer to rely on the date in the filenames, you can use this routine, that checks if a date is older than another:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. How can I find and delete files based on date in a linux shell script without find? Ask Question. Asked 10 years ago. Active 6 years, 8 months ago. Viewed 13k times. Create a free Team What is Teams? Learn more. Delete files between two dates Ask Question. Asked 5 years, 9 months ago.
Active 4 years, 2 months ago. Viewed 13k times. Machine is running on RedHat. Improve this question. Do the files' time stamps correspond to their date, or is the date embedded in their filenames somehow?
0コメント