The every day things from Thalamus' life.

Thalamus' Blog

18 March, 2010

Inline perl substitution

Filed under: ComputerStuff_en — Thalamus @ 15:06

Had a friend at work asking if I knew perl. I said – sure … but, then had to lookup in google to find the answer. I don’t use inline editing much – so, that is why I’m adding this note …. to remind me of the syntax.

perl -i.bak -p -e "s/sometext/replaced/g" test.template
• • •