Dave Horsfall writes: > They don't get much smaller than this: > > perl -p -00 -e 's/\r\n //g; s/\n //g' perl -p00e 's/\r?\n //g' :-)