On Sat, 28 Jun 1997 you (Luke Davis) wrote:
If the latter: I have a little C program that will convert all
new lines to commas.
And I commented
Er, why reinvent the wheel?
tr "\n" "," < infile > outfile
And you replied
Tried that here, and it didn't work.
Then something's wrong. I'd suggest that time would be more
usefully spent fixing that than writing your own single-use filter
in C.
Besides, a program for just that purpose is probably faster, and
definatly
smaller.
Ugh! Extra single-use filters, however small, add bulk, unless
you're going to throw away tr, which would probable break a lot of
other stuff. And as for speed, you'd have to be filtering
gigabytes before you'd notice the difference. What are you going to
do with those saved microseconds, Luke? Write another single-use C
filter? :-)
el bid