I am trying to change a file to add information at certain points, but I also need to a new line like add:
test = true
metadata = false
so i did a sed 's/end/^M test = true ^M metadata = false/' tmp > tmp2
but in tmp2 i see end^M test = true^M metadata = false.
I have also tried \n instead of ^M but i get n in the file and I have tried \\n which gives me \n in the file. Any ideas of what I am doing wrong??
Thanks
test = true
metadata = false
so i did a sed 's/end/^M test = true ^M metadata = false/' tmp > tmp2
but in tmp2 i see end^M test = true^M metadata = false.
I have also tried \n instead of ^M but i get n in the file and I have tried \\n which gives me \n in the file. Any ideas of what I am doing wrong??
Thanks