examples for tr -t truncate
am not able understand tr translate cmd with option -t truncate.
according to man pages -t, --truncate-set1 first truncate SET1 to length of SET2
my work around:
[root@server cg]# echo "hhi hello" | tr -t [hh] [h]
even from my abv example, i dont understand what is doing.
if anyone ve better examples, plz let me know.
Last edited by arun natarajan; 04-19-2016 at 04:45 AM.