Home > linux, software > tr – almost forgotten (at least i had)

tr – almost forgotten (at least i had)

February 6th, 2012 Leave a comment Go to comments

I confess, I use ms excel from time to time. I find it easy to shuffle around datasets and to create simple diagrams to see if my data matches my expectations. But as soon as it comes to really plotting the data for publishing I curse myself for never having learned to use a sophisticated command line tool and revert back to my crappy configured gnuplots. Normally I just copy the parts of the dataset I want from the various excel sheets into plain txt files to have gnuplot plot them. Damn MS uses \r instead of \n so gnuplot doesn’t plot these files. This is where tr comes to the rescue:

tr '\r' '\n' < input.dat > output.dat

Why do I always end up using these damn old *nix tools – OMG – I’m getting old . . .

Categories: linux, software Tags:
  1. No comments yet.
  1. No trackbacks yet.