🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #24

Re: most egregious modulus program

#24
From: Root Boy Jim
Date: Sun, 25 Aug 1991 18:21
15 lines
983 bytes
In <1991Aug23.234156.21347@netlabs.com> lwall@netlabs.com (Larry Wall) writes:
>[Sorry 'bout all the crossposting, but there's no rec.nroff.abuse yet...]

Nor is there rec.nroff.poetry.

>The ;login: journal graciously printed my entry to the "Most Egregious
>Misuse of Unix Utilities" contest...

>    `echo "10^$1" | bc | tr -d 1 | sed 's/0/0 /g'` \&

This is definitely egregious.
It uses too many processes.
Fold the tr command into the sed.
-- 
		Desolation Row Jimmy <rbj@uunet>
Technical Details
Message-ID: <1991Aug25.182128.25335@uunet.uu.net>
Path: arc1-ca.pugleaf.net!wupost!uunet!uunet!rbj
References: <1991Aug23.234156.21347@netlabs.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text,comp.org.usenix,comp.unix-wizards,alt.sources,comp.sources.bugs,comp.unix.misc,comp.unix.programmer,comp.unix.shell,talk.bizarre,alt.tasteless
Path: arc1-ca.pugleaf.net!wupost!uunet!uunet!rbj
From: rbj@uunet.uu.net (Root Boy Jim)
Subject: Re: most egregious modulus program
Message-ID: <1991Aug25.182128.25335@uunet.uu.net>
Organization: UUNET Communications Services, Falls Church, VA
References: <1991Aug23.234156.21347@netlabs.com>
Date: Sun, 25 Aug 1991 18:21:28 GMT