Check out the differences in pass by value / pass by reference in c and c++

David Z Maze wrote:

Lance Hoffmeyer <[EMAIL PROTECTED]> writes:
LH> I am trying to write a script and I need to remove the top 3 lines of a
LH> file.  I thought tail would be the tool for the job.
LH> LH> The script is: LH> LH> enscript -1 -r -M Letter -p outputfile $1 LH> LH> I need tail to take off the top 3 lines of $1

Probably

 tail +3 $1 | enscript -1r -M Letter -p outputfile

Or, failing that:

 tail +3 $1 > tmpfile
 enscript -1r -M Letter -p outputfile tmpfile

Often, programs will accept '-' as a command-line parameter in place
of a file name to mean "standard input".


--
[EMAIL PROTECTED]
        Spam : def: It's not kosher.



Reply via email to