Feel free to correct my English
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
I need to write a shellscript and I hope you can help me:
I have got 30 directories, each has a different name. In the
directories, files are stored which are built up like this: XXX.000,
XXX.001 ....up to XXX.500
XXX can be everything from i.e. test1(.066) to actock77(.003).
Now I need to find the file with the highest extension (i.e. XXX.050)
and delete all files that have a lower extension (XXX.000 - XXX.049),
so that only XXX.050 remains. Approximately 2300 files are to be
After that, the computer should switch to the next directory and
continue the progress.
With kindest regards,