Re: Bash script last 4 folder delete

2021-10-12 Thread Gokan Atmaca
> unicorn:~$ mkdir /tmp/x && cd "$_" > unicorn:/tmp/x$ mkdir 98 99 100 101 102 103 104 > unicorn:/tmp/x$ echo * > 100 101 102 103 104 98 99 Hello Gred Very thanks. Worked :) Best regards... On Tue, Oct 12, 2021 at 7:04 PM Greg Wooledge wrote: > > On Tue, Oct 12, 2021 at 05:41:59PM +0300,

Re: Bash script last 4 folder delete

2021-10-12 Thread Greg Wooledge
On Tue, Oct 12, 2021 at 05:41:59PM +0300, Gokan Atmaca wrote: > 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

Re: Bash script last 4 folder delete

2021-10-12 Thread David Wright
On Tue 12 Oct 2021 at 17:41:59 (+0300), Gokan Atmaca wrote: > > 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

Bash script last 4 folder delete

2021-10-12 Thread Gokan Atmaca
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?