Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The command line flags to learn about to get all these features are: -p -i -n -l -a -e

One of my favorite Perl mnemonics when needing to apply edits to a set of files is:

  With Perl, it is as easy as pie.
Which reminds me that making a global substitution across N files can be done with:

  perl -p -i -e '<insert substitution here>' $WHAT_FILES


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: