Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Gorgor
on Nov 30, 2016
|
parent
|
context
|
favorite
| on:
Useful Perl one-liners (2013)
Don't you end up duplicating every line break that way? I think it should be
perl -p -e 's/\r//g' Bad_Microsoft.csv Good_unix.csv
After all, Microsoft files usually end in a carriage return followed by a line break and not a bare carriage return, don't they?
ldoroud
on Nov 30, 2016
[–]
Not really or at least I haven't had that problem. It would be a problem if they used both \r and \n at the same time. in that case you can always do \r\n to \n or something like that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: