My problem is that I have a bunch of file names without the version appended (version keeps changing everytime). The file names are in a file in a particular sequence and I need to get the latest version from a folder and then sequentially install the same. The logic would be:
- scan a file with contents
- read a line from the file
- using this as a key, access the folder and match the same
- if found, write the full file-name to a file with some characters appended
- if not found, skip and loop to line 1, till all the lines in the file are finished
What is the best language to use: shell script or Perl for such a task? And if someone can provide some hints in the form of code :-)