384 B
384 B
| title | category | layout |
|---|---|---|
| Perl-pie | Development | 2017/sheet |
About
{: .-intro}
Use perl to search and replace across many files.
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"