[net.unix-wizards] the first line

FC01@USC-ECL@sri-unix (11/19/82)

From: FC01 <FC01 at USC-ECL>
Date: 16 Nov 1982 1058-PST
If you want to use the first line as a general purpose shell script invoker,
simply write a filter to extract the first line (first n lines) if it (they)
has (have) # as its (their) first character, and invoke the appropriate program
(programs successively) on the rest of the file. This would look like:

#! /u/fc/bin/filtername arbitrary program name with switched, etc
#! optionally more of the same
#! ...
#! last in the list of successive pipes to be xmitted through
rest of file

If you like, simply use a shell script for the filter by piping the file
through sed with the proper incantations, otherwise write a 40line program
to do exactly what you want.
			Fred
-------