Skip to content

Instantly share code, notes, and snippets.

/.txt Secret

Created May 6, 2015 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/83720145149740c693a4 to your computer and use it in GitHub Desktop.
Save anonymous/83720145149740c693a4 to your computer and use it in GitHub Desktop.
> cat x.txt
The sexy saxaphone,
got the axe.
> perl -MIO::All -e 'map { s/x/X/g; $_ } @{io(shift)}' x.txt
> cat x.txt
The seXy saXaphone,
got the aXe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment