Quote:
Originally Posted by
prajaktaraut
Hello all,
A quick solution will let me move ahead...
Do share a script for further analysis
The UNIX & Linux Forums is here to help you learn how to write your own code; the volunteers here are not your unpaid programming staff.
RudiC has given you code that you should be able to mold into something that will meet your requirements. RudiC also asked questions that you have not answered that would provide information that would greatly simplify code that I would write if I were trying to solve your problem. You were asked to show us the output of
ls (which would clearly demonstrate the format of your filenames). You have shown us one relative pathname (
TUM/ABC/abc_20162019.db), if all of the filenames you want to process follow this filename format (i.e., 3 lowercase letters; <underscore>; 6 decimal digits; and one of the three filename extensions:
.db,
.md, and
.txt), then code could be significantly simplified. If we knew that there are no files in those directories that do not conform to the above filename format, code could be simpler still.
If you would like our help to complete your project, please answer the questions that have been asked, show us the code you have tried, show us what is working, and explain clearly what still needs to be done.