aboutsummaryrefslogtreecommitdiff
path: root/man/man1/trs.1df
blob: 93b2cad31aff1c6591ee7b05f5807ded6bf3ef9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.TH TRS 1df "May 2017" "Manual page for trs"
.SH NAME
.B trs
\- string version of tr(1)
.SH SYNOPSIS
.B trs
STRING REPLACEMENT
< file
.br
program | 
.B trs
STRING REPLACEMENT
.SH DESCRIPTION
.B trs
replaces the string given in its first argument with the string given in its
second, with no regex metacharacters, in a way that should work on all POSIX
implementations. It is thereby the string complement for tr(1).
.P
The first argument cannot be a null string. The second argument can be blank
(but must still be specified) to implicitly delete all occurrences of the
string.
.SH CAVEATS
It can't replace newlines.
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>