Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by AdieuToLogic

3 months ago

> 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

0 comments

AdieuToLogic

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities