Prepending _Variable_ Folder Names to a List of Files

Given a text file containing: AF002 AI003 AA001 AD005 AD006 AI002 … (separated by record separators) Produce a text file containing the following: AF/AF002.jpg AI/AI003.jpg AA/AA001.jpg AD/AD005.jpg AD/AD006.jpg AI/AI002.jpg … (separated by the same record separators) In other words, infer the path from the first two letters of the filename, and append .jpg Another desired…

Details