renamepalooza time

Jonathan M Davis jmdavisProg at gmx.com
Sun Jan 23 07:32:39 PST 2011


On Sunday 23 January 2011 07:12:16 Brad wrote:
> On 2011-01-21, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> > tr? The name means nothing to me. I haven't a clue where the name comes
> > from, so I can't really give a better version of the same name. As it
> > is, tr seems fine to me, particularly since tR just seems stupid. It
> > should probably get a more descriptive name though. replaceChars?
> 
> Just for everyone's info.
> 
> tr is a standard unix command; been around forever,
> and it is a mnemonic for 'translate'.
> 
> It's also in perl.
> 
> tr A-Z a-z   # convert to lower-case
> Perl: $ph =~ tr/0-9/cd # get only the digits from a phone number entry
> field.

Good to know. I know a number of unix/linux commands, but there always seems to 
be more of them... Not that that's a bad thing.

- Jonathan M Davis


More information about the Digitalmars-d mailing list