I can't tell if sed is mucking my file up. In vi or less it displays properly, but cat and more insert other characters. why are they showing up differently
I am on a redhat linux system with a standard xterm.
the raw tab file before:
scaffold1000 693:14709284:741:333 129011535 1
scaffold1000 693:14709284:27:726 129011535 1
scaffold1000 693:14709284:44:1157 129011535 1
scaffold1000 693:14709284:771:459 129011535 1
scaffold1000 693:14709284:610:615 129011535 1
scaffold1000 693:14709284:1152:1159 129011535 1
applying sed:
sed -i 's/scaffold/scaffold\_/' [myfile]
I've also tried this without the backslash to the same result.
Using cat I see this :
scaffold11000 693:14709284:741:333 129011535 1
scaffold11000 693:14709284:27:726 129011535 1
scaffold11000 693:14709284:44:1157 129011535 1
scaffold11000 693:14709284:771:459 129011535 1
scaffold11000 693:14709284:610:615 129011535 1
Where did that '1' come from? :(
editing in vi or using less I see:
scaffold_1000 693:14709284:741:333 129011535 1^M 1^M 1
scaffold_1000 693:14709284:27:726 129011535 1^M 1^M 1
scaffold_1000 693:14709284:44:1157 129011535 1^M 1^M 1
scaffold_1000 693:14709284:771:459 129011535 1^M 1^M 1
scaffold_1000 693:14709284:610:615 129011535 1^M 1^M 1
scaffold_1000 693:14709284:1152:1159 129011535 1^M 1^M 1
Do the ^M chars have something to do with this? Its like I can't trust my own eyes here...
