Something which is not so obvios but real cute..

Something which is not so obvios but real cute..

Post by Stephen Riehm [Romuli » Sat, 06 Jul 1991 16:23:57



The #!/bin/csh line is a lot more powerfull that it first appears.
essentially you can specify ANY program in this line, and it will be
executed, with the script file being specified just after the last arg
specified in this line. sound confusing?
examples:

--- awk script to indent the text in the input stream ---
#!/usr/bin/awk -f
{
        print ">" $0;
        }
--- end script ---
set the executable flag, and type the following..

script_file < in_file

what actually gets run is..

awk -f script_file < in_file

its cute and can be used with just about anything, including make,
cat, sed, ed, vi, and lots lots more.

have fun guys!

catchya
thanx in advance

=========================================================================
Romulis [Stephen Riehm]                           BKX Australia Pty. Ltd.

=====< My employer is too busy with his own ideas, these are MINE!>======
--
catchya
thanx in advance

under new management

 
 
 

Something which is not so obvios but real cute..

Post by Michael Meissn » Tue, 09 Jul 1991 01:45:43




| The #!/bin/csh line is a lot more powerfull that it first appears.
| essentially you can specify ANY program in this line, and it will be
| executed, with the script file being specified just after the last arg
| specified in this line. sound confusing?

Note that most systems put a limit on the size of the pathname (32 is
a common value for this limit).  This means you can typically execute
stuff in /bin, /usr/bin, or /usr/local/bin, but would have problems
with longer pathnames.
--

Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.

 
 
 

1. Just something cute

UNIX Airways
Everyone brings one piece of the plane along when they come to the
airport.
They all go out on the runway and put the plane together piece by piece,

arguing non-stop about what kind of plane they are supposed to be
building.

Air DOS
Everybody pushes the airplane until it glides; then they jump on and let

the plane coast until it hits the ground again. They then push again,
jump
on again, and so on...

Mac Airlines
All the stewards, captains, baggage handlers, and ticket agents look and

act exactly the same. Every time you ask questions about details, you
are
gently but firmly told that you don't need to know, don't want to know,
and
everything will be done for you without your ever having to know, so
just
shut up.

Windows Air
The airport terminal is pretty and colorful, with friendly stewards,
easy
baggage check and boarding, and a smooth take-off. After about 10
minutes
in the air the plane explodes with no warning whatsoever.

Windows NT Air
Just like Windows Air, but costs more, uses much bigger planes, and
takes out all
the other aircraft within a 40 mile radius when it explodes.

Linux Air
Employees of all the other OS airlines decide to run their own airline.
They build
the planes, ticket counters, and pave the runways themselves. They
charge a small fee
to cover the cost of printing the ticket, but, you can also download and
print the ticket
yourself. When you board the plane you are given a seat,  four bolts, a
wrench and a
copy of the seat-HOWTO.html. Once settled, the fully adjustable seat is
very
comfortable, the plane leaves and arrives on time without a single
problem, the
in-flight meal is wonderful. You try to tell customers of the other
airlines about the
great trip, but all they can say  is "You had to do what with the seat?"

--
Mohawk Software
Expert Solutions Now! Windows 95, Windows NT, UNIX,
Linux. Applications, drivers, support.
Visit the Mohawk Software website: www.mohawksoft.com

2. OutB

3. Real Time Clock not responding - Am I screwed??

4. How to print PS files on non-postscript printer?

5. Ip_masq_ftp kills IE4 & Netscape FTP, not CUTE-FTP, how to fix???

6. fingerd not displaying .plan file Soalris 2.3

7. Am I doing something wrong?? - (SAMBA)

8. Linux and GPS Time: A question

9. I am missing something simple

10. How do I get 'w' to say that i am doing something else

11. Am I missing something with the 5.0 ISO images?

12. Bug in cardbus initialization, or am I missing something?

13. Am I missing something or does Netscape's NEWS reader suck?