Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
buntar
on Aug 17, 2012
|
parent
|
context
|
favorite
| on:
Perl/Linux, a Linux distribution where all program...
I could use a lightweigt and fast perl version of SED. There are incompatibilities between sed versions, especially between linux and mac. Therefor a small sed utility that you can ship with every release would be useful.
zokier
on Aug 17, 2012
[–]
perl -p -e?
0xbadcafebee
on Aug 17, 2012
|
parent
[–]
add -i to edit a file in place
$ perl -p -i -e 's/\r\n/\n/' file1 file2 file3
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: