TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:7930] lpr/lpd/OSAS problems continued...
On Thu, 26 Aug 1999, Carl Wilhelm Soderstrom wrote:
> how would I write a sed script to chop off the ^L character (if it
> exists) at the end of a file, then send the file to lpr? (haven't
> had much luck making heads or tails of the sed man page) (yes I
> know perl/awk/python will do it too; but isn't sed the
> smallest/fastest one?)
>
> then how do I invoke the sed script? instead of '> lpr -P hp4v 2>/dev/null',
> would i use '>sed script.sed 2>/dev/null'?
You would create a printcap entry that has an "if=<script path>" entry
in it. The script would need to redirect output to stdout.
Later!
^chewie
+----------------------------------------------------+
| Chad Walstrom mailto:chewie@wookimus.net |
| ICQ: 9985127 http://wookimus.net/~chewie |
+----------------------------------------------------+
Need a new truck? Check out my '97 Explorer 2-door
Sport at http://wookimus.net/~chewie/truck.html