From: Gary Wright Date: 2008-01-05T08:41:16+09:00 Subject: Re: String#tr_s On Jan 4, 2008, at 5:51 PM, J. Cooper wrote: > Unfortunately I still don't see a practical use for the thing though. # Remove blank lines from standard input ruby -e 'puts ARGF.read.tr_s("\n", "\n")' # convert the standard input into a list of words, one per line: ruby -e 'puts ARGF.read.tr_s("^A-Za-z", "\n")' Gary Wright