1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-10-17 07:57:43 +02:00
cheatsheets/perl-pie.md
Rico Sta. Cruz 60a1d7593f Update
2015-12-20 05:35:19 +08:00

289 B

title, category
title category
Perl-pie Development

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"