I'm reading a book on sed/awk now but I would like to be done with this sometime today. I have 2 files
one with hundreds of <LF> delineated urls "file1"
all of the urls are of the format:
I have a file full of hundreds of <LF> delineated file names. "file2"
I have a directory full of mpg files, all of them have names corresponding to the characters after the last equals sign.
all these files are in the same directory
I want to write a script to 1
1. use sed to parse file 1 and remove everything prior to and including the equals sign, and save this to "file3"
2. write a rename script to parse "file1",
lets say the first line is F93jfs,
I want it to attempt to rename F93jfs.mpg to the first line of "file2" followed by mpg.
Last, Just so everyone knows yes I am trying to batch rename many streamed files. All which I have the rights to. Nothing illegal.
second. I'm not just asking someone to write code for me, I've been fiddling with sed all morning and I'm not having a lot of luck.
Thanks in advance.