Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #195160
| From | Gene Heskett <gheskett@shentel.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: List words separated by comma and without duplicates |
| Date | 2018-04-30 00:30 +0200 |
| Message-ID | <vK2Zs-3aj-7@gated-at.bofh.it> (permalink) |
| References | <vJYCt-8cM-5@gated-at.bofh.it> <vK0XD-1FV-3@gated-at.bofh.it> <vK1gZ-1Sz-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Sunday 29 April 2018 16:34:18 tomas@tuxteam.de wrote: > 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! > For those that are too "new", that was AFAIK, and RCA 1802 with 4k of static ram. Very slow, and very low power. But having experience codeing for it in the later 70's, it was both stable and if the coder did his job, bulletproof. The program I wrote for it was still being used 20+ times a day by the production people at KRCR-tv in Redding CA, in 1996. Considering I wrote it in 1978, that 18 years of non-stop use at a tv station, its like The Simpsons, who just passed Gunsmoke as the longest running program ever. I suspect it was still in use during the day of June 30th 2008, the last day we broadcast in NTSC. For a program that made liberal use of self-modifying code, I'd say that was amazing. Lets also say that the 1802's architecture was also different from every other cpu in the 8/16 bit field then. The TI 9900 was the only simpler one, stripping any internal register that addressed memory directly. -- Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
List words separated by comma and without duplicates Rodolfo Medina <rodolfo.medina@gmail.com> - 2018-04-29 19:50 +0200
Re: List words separated by comma and without duplicates rhkramer@gmail.com - 2018-04-29 20:00 +0200
Re: List words separated by comma and without duplicates "Antonio A. Rendina" <arendina13@gmail.com> - 2018-04-29 20:20 +0200
Re: List words separated by comma and without duplicates David Margerison <deltam@electrosonics.com.au> - 2018-04-30 01:40 +0200
Re: List words separated by comma and without duplicates Bob McGowan <ramjr0915@gmail.com> - 2018-05-01 05:50 +0200
Re: List words separated by comma and without duplicates "Antonio A. Rendina" <arendina13@gmail.com> - 2018-04-29 20:30 +0200
Re: List words separated by comma and without duplicates Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-04-29 20:40 +0200
Re: List words separated by comma and without duplicates <tomas@tuxteam.de> - 2018-04-29 20:30 +0200
Re: List words separated by comma and without duplicates Curt <curty@free.fr> - 2018-04-29 22:20 +0200
Re: List words separated by comma and without duplicates <tomas@tuxteam.de> - 2018-04-29 22:40 +0200
Re: List words separated by comma and without duplicates Gene Heskett <gheskett@shentel.net> - 2018-04-30 00:30 +0200
[OT - long running shows] Re: List words separated by comma and without duplicates Richard Hector <richard@walnut.gen.nz> - 2018-04-30 02:30 +0200
Re: [OT - long running shows] Re: List words separated by comma and without duplicates Gene Heskett <gheskett@shentel.net> - 2018-04-30 03:00 +0200
Re: [OT - long running shows] Re: List words separated by comma and without duplicates Richard Hector <richard@walnut.gen.nz> - 2018-04-30 03:30 +0200
Re: [OT - long running shows] Re: List words separated by comma and without duplicates Gene Heskett <gheskett@shentel.net> - 2018-04-30 05:00 +0200
Re: List words separated by comma and without duplicates Rodolfo Medina <rodolfo.medina@gmail.com> - 2018-05-18 21:00 +0200
Re: List words separated by comma and without duplicates <tomas@tuxteam.de> - 2018-05-18 21:20 +0200
csiph-web