tr : transliterate characters (cont)
Characters that are not in sourceChars are copied unchanged to output.
If there is no corresponding character (i.e. destChars is shorter than sourceChars), then the last char in destChars is used.
Shorthands are available for specifying character lists:
E.g. 'a-z' is equivalent to 'abcdefghijklmnopqrstuvwxyz'
Note: newlines will be modified if the mapping specification requires it.
|