HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
t
tr(1) tr(1)
Translate each digit in file1 to a
# (number sign), and write the result to file2.
tr "0-9" "[#*]" <file1 >file2
The * (asterisk) tells tr to repeat the
# (number sign) enough times to make the second string as long as
the first one.
AUTHOR
tr was developed by OSF and HP.
SEE ALSO
ed(1), sh(1), ascii(5), environ(5), lang(5), regexp(5).
STANDARDS CONFORMANCE
tr: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1−−991