This is a follow up problem to a question I posed earlier. Basically when I do this:
sed '/Q/{
s/Q//g
r /Users/ericbrotto/Desktop/question.txt
}' Commision.txt
everything is fine, but the new output just prints to a console.
When I do this:
sed '/Q/{
s/Q//g
r /Users/ericbrotto/Desktop/question.txt
}' Commision.txt > newFile
the output prints to file, but my new string (the one that was properly replaced in the previous output) now reads as a bunch of asian (I believe Mandarin) characters.
Any ideas?