The SuperSearch yielded a
relevant thread regarding this. To hurl in another few cents, Macintosh (I believe) uses a single "\r" or carriageReturn to terminate a line. There is also some quite strenuous discussion of the whole
Unix Dos Mac Windows thing.
Getting off topic now, since the question only regards doing this with shell oneliner.
I searched the Q&A for a dummies guide to this, How to control UNIX vs DOS line feeds in Perl is pending approval by powers mightier than I