-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Apr 29, 2018 at 08:06:47PM +0000, Curt wrote:

[...]

> Not knowing anything I came up with (after some research):
> 
> sort -u < test.txt | tr '\n' ',' 
> 
> No sed. 

If you don't need the space after the comma then yes, sed is
superfluous. Reminds me that half of my work as a programmer
is done talking to the customer ;-)

> My list has a comma at the beginning as well as at the end, though (with
> no newline, either).
> 
> But if we were going to the moon with this I would be economizing that
> supernumerary process.
> 
> ;-)

:-))

Remember the size of the computers which went to the moon 1969. For
tr there's space (without unicode). For sed... hmmm. For Perl? Hell,
no!

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlrmLEoACgkQBcgs9XrR2kaJ6QCfZLKgwpCnBXit01v/+JzyXpx+
ZOIAniY2EpMhbzsE0bYN2rsp0+MLwIUY
=h88w
-----END PGP SIGNATURE-----

Reply via email to