toikpi@feddit.uktoProgramming@programming.dev•Why do they keep making new languagesEnglish
5·
1 year agoWithout new programming languages we would still be using FORTRAN, AGOL and LISP.
https://fortran-lang.org/learn/quickstart/hello_world/
https://lisp-lang.org/learn/first-steps
One reason why new languages are developed is the creation of a “Domain-specific language” or DSL. See Wikipedia for more information.
Programming languages are tools you pick the one for the job, there are situations where Java’s garbage collection could be a problem so it would not the right tool to use.
As @damium@programming.dev says you may be able to do this with
find
command. This command lists all PDF files under ~/tmp that were created more than 7 days ago and does a directory listing. You could use this as a basis to move create an archive of individual files.find ~/tmp -ctime +7 -iname "*pdf" -exec ls -rlht {} \;
The
find
command also has a-delete
flag.I have in the past used this combination to implement file management. I don’t have access to the script any more. I don’t remember why we used a shell script rather than logrotate as per @oddityoverseer@lemmy.world