Menu

gitpiper

Perl-pie Cheat Sheet in January 2025

Last Updated: 11 January 2025

README.md

Search and replace

perl -p -i -e 's/hello/hola/g' *.txt

Back-referencing

Use \1 et al.

# '@include align-items(center);' => 'align-items: center;'
perl -p -i -e "s/\@include (align-items)\((.*)\);/\1: \2;/g"

338+ more cheat sheets for you in January 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️