Hacker News new | comments | show | ask | jobs | submit login

add -i to edit a file in place

     $ perl -p -i -e 's/\r\n/\n/' file1 file2 file3



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: