examples for tr -t truncate
hi,
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]
]]i ]ello
[root@server cg]#
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 03:45 AM.
|