|
From: Michel T. <ta...@lp...> - 2024-03-01 18:21:06
|
Like this:
Zbox:~$ mkdir A
Zbox:~$ maxima -q
(%i1) load("operatingsystem");
(%o1)
/usr/share/maxima/5.42.2/share/contrib/operatingsystem/operatingsystem.mac
(%i2) for i from 1 thru 10 do mkdir(string(A/concat(B,i)));
(%o2) done
(%i3) for i from 1 thru 10 do if oddp(i) then rmdir(string(A/concat(B,i)));
(%o3) done
(%i4)
Exit maxima
Zbox:~$ ls A
B10 B2 B4 B6 B8
Le 01/03/2024 à 18:23, El Observatorio De Matemática a écrit :
> Hi list
>
> I want to handle a folder with more than 70000 files and 50000
> directories and delete from it several files and directories using
> Maxima, if it is possible.
> There is a package in contrib named operatingsystem that potentially
> can do this task but i can not figure out how to use it.
>
--
Michel Talon
|