Language Table
Bert Freudenberg
bert at isgnw.CS.Uni-Magdeburg.De
Fri Apr 14 06:40:22 UTC 2000
On Thu, 13 Apr 2000, Marcel Weiher wrote:
> > From: merlyn at stonehenge.com (Randal L. Schwartz)
> >
> > Marcel> cat <file> | tr ' ' \\12 | sort | uniq | wc
> >
> > Which of course would be a "useless use of cat"...
>
> :-)
>
> True, but I don't really like: tr < <inputfile> ..., though I do
> use it quite often...
It looks better if you write it as
< inputfile tr ...
ObSqueak:
'inputfile' readOnlyFile contentsOfEntireFile substrings asSet size
This also has 5 components so indeed SHELL and Smalltalk are on the same
Level :-)
-Bert-
Yes I cheated:
String>>readOnlyFile
^FileStream readOnlyFileNamed: self
More information about the Squeak-dev
mailing list
|