Search Results

Search: Posts Made By: newuser_25
3,754
Posted By newuser_25
Script to delete old directories
Hi
I have 10 directories.I want to delete all the dicrectories except the three recent directories based on timestamp.I am new to BASH can u help me?
5,158
Posted By newuser_25
Example these are files with their timestamp: ...
Example these are files with their timestamp:
file1 may10
file2 may15
file3 june3
file4 june 15
file5 june 30
file6 july 18
file7 july 25

i would need the script to delete files1...
5,158
Posted By newuser_25
Thanks ygemici.But the code that u sent deletes...
Thanks ygemici.But the code that u sent deletes the last three oldest files.I wanted to delete everything except the last three recent files.
5,158
Posted By newuser_25
Script to delete files
Hi,
I am looking for a BASH script that deletes old files except the last three recent ones.
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy