March 17th, 2011, 04:00 PM
Join Date: Nov 2003
Time spent in forums: 22 h 6 m 33 sec
Reputation Power: 11
Use for loop or awk?
I have a tab delimited file with 2 columns.
I have to loop through this file and copy the files with the first field to a new name that contains both the first and second field.
To be more specific,
file quote2224.pdf has to be copied to 23943843_quote2224.pdf
file quote5494.pdf has to be copied to 39843843_quote5494.pdf
What's the best way to do this?
I don't know how or if it's even possible to use a for loop and access both fields.
I don't know how to copy files in awk.
Last edited by achieve : March 17th, 2011 at 04:06 PM.