Hacker Newsnew | 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 | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: