head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2003.12.11.21.16.06;	author dunc;	state Exp;
branches;
next	1.1;

1.1
date	2003.12.02.02.50.01;	author dunc;	state Exp;
branches;
next	;


desc
@Print page<n> files where <n> is odd, possibly with manual assistance
@


1.2
log
@Added manual -m option
@
text
@#!/bin/sh
[ -f page1 ] || { echo No odd pages to print;exit 1; }
i=1
while [ -f page`expr $i + 2` ];do i=`expr $i + 2`;done
echo last page is $i
[ "$1" = "-m" ] && manual=true || manual=false
while [ $i -gt 0 ];do
  $manual &&
  {
    echo -n "Print page $i> "
    read j
  }
  lpr -c page$i
  i=`expr $i - 2`
done
@


1.1
log
@Initial revision
@
text
@d2 1
a2 4
if ! [ -f page1 ];then
  echo No odd pages to print
  exit 1
fi
d6 1
d8 5
@
