Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: zeugma

sed, awk, grep, perl, cut, tail and the like, not to mention ssh.

Sounds like you have a frog in your throat.
Is ‘frog’ a programming language?


10 posted on 08/10/2017 1:41:39 AM PDT by minnesota_bound
[ Post Reply | Private Reply | To 6 | View Replies ]


To: minnesota_bound
sed, awk, grep, perl, cut, tail and the like, not to mention ssh.

Is ‘frog’ a programming language?

Ya. We croak the code out, and it can do amazing things.

What's funny is that I have scripts that pretty much use all of the above commands in a single line.

Here's an actual functional line from one of my scripts. It is actually doing a crapload of work.
sed 's/#/ /g' $FILE | awk '{print $4}' | sort | uniq -ic | sort -nr | sed 's/://g' > $FILE.client

...Which brings to mind this particular gem... Is Unix a Hoax?

From the article...

"In 1969, AT&&T had just terminated their work with the GE/Honeywell/AT&&T Multics project. Brian and I had just started working with an early release of Pascal from Professor Nichlaus Wirth's ETH labs in Switzerland and we were impressed with its elegant simplicity and power. Dennis had just finished reading 'Bored of the Rings', a hilarious National Lampoon parody of the great Tolkien 'Lord of the Rings' trilogy. As a lark, we decided to do parodies of the Multics environment and Pascal. Dennis and I were responsible for the operating environment. We looked at Multics and designed the new system to be as complex and cryptic as possible to maximize casual users' frustration levels, calling it Unix as a parody of Multics, as well as other more risque allusions. Then Dennis and Brian worked on a truly warped version of Pascal, called 'A'. When we found others were actually trying to create real programs with A, we quickly added additional cryptic features and evolved into B, BCPL and finally C. We stopped when we got a clean compile on the following syntax:

    for(;P("\n"),R--;P("|"))for(e=C;e--;P("_"+(*u++/8)%2))P("| "+(*u/4)%2);

11 posted on 08/10/2017 7:54:31 AM PDT by zeugma (The Brownshirts have taken over American Universities.)
[ Post Reply | Private Reply | To 10 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson