OSDN Git Service
(root)
/
twpd
/
master.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Regular updates
[twpd/master.git]
/
perl-pie.md
1
---
2
title: Perl-pie
3
category: Development
4
---
5
6
### Search and replace
7
8
```sh
9
perl -p -i -e 's/hello/hola/g' *.txt
10
```
11
12
### Back-referencing
13
14
Use `\1` et al.
15
16
```sh
17
# '@include align-items(center);' => 'align-items: center;'
18
perl -p -i -e "s/\@include (align-items)\((.*)\);/\1: \2;/g"
19
```