Perl-pie
A cheatsheet by @rstacruz|Refreshed 7 months ago.Refresh|View source on Github

Search and replace

Search and replace

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

Back-referencing

Back-referencing

Use \1 et al.

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