Ingrid,
You need to parse both files to temp once, containing just what you need and then "paste" them together:
cut -d":" -f1 <file1> > temp_file1
cut -d"(" -f3 <file2> >temp_file2
cut -d")" -f1 <temp_file2> >temp2_file2
paste -d":" temp_file1 temp2_file2 > result_file
PS: Try one by one command and see on the screen what you're getting
PPS: Always, always create a back-up.
|