[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

using tail in a pipe and script



I am trying to write a script and I need to remove the top 3 lines of a
file.  I thought tail would be the tool for the job.

The script is:

enscript -1 -r -M Letter -p outputfile $1

I need tail to take off the top 3 lines of $1


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

does not work.  I have not had much experience at pipes and such (as one
can plainly see).  What modifications do I need to get this script to
work?

Lance



Reply to: