3 ms·
This is an excellent article. However, note that if you're using tr from GNU Coreutils, you have to use the 'A-Za-z' syntax for character ranges instead of '[A
by b215826 7y ago
This is an excellent article. However, note that if you're using tr from GNU Coreutils, you have to use the 'A-Za-z' syntax for character ranges instead of '[A-Z][a-z]', since GNU tr doesn't use the SysV syntax [1]:
GNU `tr' does not support the System V syntax that uses square
brackets to enclose ranges. Translations specified in that format
sometimes work as expected, since the brackets are often
transliterated to themselves. However, they should be avoided
because they sometimes behave unexpectedly. For example, `tr -d
'[0-9]'' deletes brackets as well as digits.
[1]: https://www.gnu.org/software/coreutils/manual/html_node/Character-sets.html https://www.gnu.org/software/coreutils/manual/html_node/Char...