tr -t command,
string1 should be truncated to the length of
tr -t abcdefghijklmn 123 # abc... = string1, 123 = string2 the cellar is the safest place # actual input the 3ell1r is the s1fest pl13e # actual output
'to truncate' is another word for 'to shorten', right?
tr translates, according to the pattern, completely ignoring the
-t option. If I autocomplete to
--truncate-set1 [to assure that I use the correct option] produces the same output.
Question: what am I doing wrong here?
I work in BASH, on a Debian based Distro.
Please note that this is a copy of a comment I made below
tr -t means: shorten string1 to the length of string2. I see that
a is translated to
b would be translated to
2 and that
c is translated to
This has nothing to do with shortening. 'To truncate' seems to mean something different than I thought. [I'm no native speaker]