Bash script last 4 folder delete
Hello
I have directories created at different times. This last updated
directory is in the directory with a symbolic link named "last".
Directories are named from 100 to 110. what i want is to delete all
directories except the folder named "last" and 4 before it. How can I
do that?
Exampe_folder_list:
100
101
102
103
104
105
106
107
108
109
110
last -> /root/test1/110
How can I do that?
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀
Reply to: