How can I add elements of a list as a prefix plus a "_" to filenames?
aaa.gf bbr.gf cee.gf
pplo 125ss 35w2
pplo_aaa.gf 125ss_bbr.gf 35w2_cee.gf
All elements are on the same folder. All target files end in .gf. Lines of list.txt should correspond to filenames alphabetically sorted, as shown in the example.
Got stuck on:
for f in *.gf; do mv "$f" LINE_"$f"; done
Don't know how to make LINE work.