File: man-extras.1

package info (click to toggle)
rpl 2.0.4-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,700 kB
  • sloc: ansic: 47,076; sh: 8,700; makefile: 79
file content (23 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[name]
rpl - search and replace text in files

/Search and replace/
Text matching the pattern \fIOLD-TEXT\fR is replaced by \fINEW-TEXT\fR in each \fIFILE\fR. The pattern may match multiple lines.

[examples]
Replace all occurrences of the word \[oq]funny\[cq] with \[oq]annoying\[cq]
in all files with extension \fI.txt\fR under the
.I reports/
directory:
.PP
.nf
.RS
rpl \--glob '*.txt' \-R \-w funny annoying reports
.RE

[see also]
.BR find (1) ,
.BR sed (1) .

[author]
Written by G\[:o]ran Weinholt and Reuben Thomas.