Hello everyone!
I am new here and by new i don't mean only in this place, but in this shell scripting area. I started learning about Operation Systems only 2 months ago.
I want to learn more but i found a problem which I don't really know how to solve.
I have a directory with 4 different files in it [file1, file2, file 3, file 4] . One of those files contains only pictures with the extension .jpg and other file contains only numbers.
I want to know how to find the file which has the photos and view its name and to find the folder with the numbers and calculate their average.
In the end can you tell me how to copy the 4 files in a new file in the same directory and then delete those 4 and keep that only new one.
I need your help!
Thank you!