19.4 A Simple Version of unsharThis little script is a great example of how something simple in UNIX can do a lot. It skips past the mail header and comments that come before some shell archives ( 19.2 ) , then feeds the archive to a shell. You can use it while you're reading a message with most UNIX mail programs ( 1.33 ) :
& or give it the name of an archive file on its command line:
% and so on. Here's a version of the script:
#! /bin/sh # IGNORE LINES BEFORE FIRST "#" COMMENT STARTING IN FIRST COLUMN: sed -n '/^#/,$p' $1 | sh
The script reads from its standard input or a single file.
It skips all lines until the comment ( - |
|