File: PRINTER

package info (click to toggle)
xrn 9.02-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,820 kB
  • ctags: 3,233
  • sloc: ansic: 24,690; makefile: 2,685; yacc: 888; sh: 252; lex: 92; perl: 35; awk: 31; csh: 13
file content (19 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/csh -f
#
# Command to print stdin with a Subject: line
#
# $Id: PRINTER,v 1.2 1994/11/23 01:46:23 jik Exp $
#
# Thought you might like the script I use for printing articles.  Its only
# interesting feature is that it puts the Subject on the cover page and
#
# page headers...
# David Brooks				dbrooks@osf.org
# Open Software Foundation		uunet!osf.org!dbrooks
#
set title = `tee /tmp/xrnp$$ | sed '/^Subject: /\\!d\\\
s/Subject: //'`
pr -h "${title}" /tmp/xrnp$$ | lpr -J"${title}"
rm -rf /tmp/xrnp$$
exit 0