Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: stupid unix commands Message-ID: <1990May2.170711.16545@athena.mit.edu> Date: 2 May 90 17:07:11 GMT References: <15633@phoenix.Princeton.EDU> <4108@sbsvax.cs.uni-sb.de> <1574@island.uu.net> Sender: news@athena.mit.edu (News system) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 25 In article <1574@island.uu.net>, daniel@island.uu.net (Dan Smith "fast screens, loud music, slow car") writes: |> I've found "yes" does have a use for generating a list of numbers |> in a shell script, a la: |> |> yes "" | cat -n | head -20 | tail -10 Perhaps you should consider using the right tool for the job.... What you do here in 4 processes and a whole bunch of context switching, I can do in one: jot 10 11 Jot is available as part of BSD, although it doesn't appear to be among the freely redistributable sources on uunet (which is strange, because the copyrights at the top of the sources say that it was written by a UCB person; oh, well, perhaps the CSRG people just haven't gotten around to checking it for proprietary code and changing the copyright at the top to the new Berkeley "freely redistributable" copyright). Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710