I have tried a lot of commands, like this:
sed -i '' "s/$/<@string>/" txt.txt > txt2.txt
This makes txt2.txt empty, why?!?
sed 's/$/<@string>/' txt.txt > txt2.txt
This does absolutely nothing and tells me that the path
<string> doesn't exist.
So what do i do, I'm using bsd sed because I'm on OS X.