bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tr command bug


From: Prateek Asthana
Subject: tr command bug
Date: Tue, 22 Jan 2008 00:21:51 -0500
User-agent: Thunderbird 2.0.0.6 (X11/20070824)

Hi,
This question/bug is regarding the 'tr' command. The documentation for tr says:


[CHAR*]         in SET2, copies of CHAR until length of SET1
[CHAR*REPEAT]   REPEAT copies of CHAR, REPEAT octal if starting with 0


Accordingly I tried few things listed below. Please let me know if my usage of the command is wrong.

>cat test
abc;;def
gehu po {} ; l
;;;;
;

>cat test|tr '[;]' '[|*]' abc||def
gehu po {} | l
||||
|

>cat test|tr '[;]' '[|*4]'
abc||def
gehu po {} | l
||||
|

So I find no difference between [CHAR*], [CHAR*REPEAT]

Kindly advise.

Thanks,
Prateek Asthana





reply via email to

[Prev in Thread] Current Thread [Next in Thread]