Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

A challenge for UNIX wizards

Article: 7870 of alt.hackers
From: (Sam Trenholme)
Newsgroups: alt.hackers
Subject: A challenge for UNIX wizards
Date: 25 May 1995 06:30:08 GMT
Organization: LLNL Laser Modeling & Optimization
Lines: 38
Approved: I have a crush on a girl named Lacey
Distribution: world
Message-ID: 3q185g$
Status: RO


Ok guys, is there a way of doing this without using a temporary file:

ls | awk 'BEGIN{FS="."}{print "mv "$0"
"$1".1"}' > l;chmod 700 l;l;rm l

(The above made a list of files,,, etc. have the names
foo.1, bar.1, etc)

The following didn't work:

eval `ls | awk 'BEGIN{FS="."}{print "mv "$0"

Well, since this in alt.hackers, this calls for an ObHack:

I got my Casio CZ-1000 synthesizer to dial phone numbers a few years
back. Since this synthesizer lets me have complicated pitch envelopes, I
set up two osscilators, each with a differant pitch envelope. Once
oscilator was the low dial pitch, the other was the high dialing pitch.
The pitch envelopes had just enough stages that, by using "tone mix"
(layering two sounds), I could get the first sound to dial the first half
of the phone number, and the second sound to dial the second half. I
didn't "gate" the sounds-- it was one continous sound with just the
pitches drifting... the phone switcher ma bell was using was smart enough to
dial the number anyway.

Version: 2.6.2

Sam Trenholme - Any views and beliefs are strictly my own, *not* LLNL's
PGP IDs: 512/8551E401, 1024/02991DCD
See primes under z in UNIX with the next line. Example: awk '..' z=1000
awk 'BEGIN{while(++a<z){for(b=i=1;i&&b*b<a;)i=a%++b;if(i)printf
a" "}}'

Child Child Child Child Child Child Child Child Child

Back to index