Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!island!daniel From: daniel@island.uu.net (Dan Smith "Happy Birthday James Brown G.O.S.") Newsgroups: comp.unix.questions Subject: Re: stupid unix commands Message-ID: <1582@island.uu.net> Date: 3 May 90 21:30:45 GMT References: <15633@phoenix.Princeton.EDU> <4108@sbsvax.cs.uni-sb.de> <1574@island.uu.net> <1990May2.170711.16545@athena.mit.edu> Reply-To: daniel@island.uu.net (Dan Smith "Happy Birthday James Brown G.O.S.") Organization: Island Graphics, Marin County, California Lines: 19 In article <1990May2.170711.16545@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: >|> >|> 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 Yea, I know, I know, and perl is *god* too! I appreciate that (and do use perl). I'm just showing an example that is likely to work on Unix systems everywhere. Someone else's posting of "yes | rm -i foo*" was amusing :-) I'll toss out a slightly different subject: what was the most obfuscated line you've ever put in a shell (any type) script? Daniel -- dansmith@well.sf.ca.us daniel@island.uu.net unicom!daniel@pacbell.com ph: (415) 332 3278 (h), 491 1000 (w) disclaimer: Island's coffee was laced :-)