Menu

gitpiper

Perl-pie Cheat Sheet in May 2023

Last Updated: 16 May 2023

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 May 2023

Subscribe to our Newsletter

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

© 2023 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! ✌️