I want it to detect the following pattern in FILE_1:
STRING_1 : "STRING_2"
and append STRING_2 to FILE_2
This is what I have right now:
sed 's/STRING_1\s*:\s*"\([^"]*\)"/\1/g' FILE_1 >> FILE_2;
but this doesn't work, it appends a lot of random stuff to FILE_2(that are not supposed to match). Not sure what I did wrong ...