From owner-freebsd-stable@FreeBSD.ORG Fri Jan 9 20:01:49 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 502D816A4D0 for ; Fri, 9 Jan 2004 20:01:49 -0800 (PST) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 324BF43D60 for ; Fri, 9 Jan 2004 20:01:48 -0800 (PST) (envelope-from pixfbsd@earthlink.net) Received: from user153.net413.tx.sprint-hsd.net ([65.40.98.153] helo=[192.168.10.11]) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1AfAJn-0006b6-00 for freebsd-stable@freebsd.org; Fri, 09 Jan 2004 20:01:47 -0800 From: pixfBSD To: freebsd-stable@freebsd.org Content-Type: text/plain Message-Id: <1073707290.4872.9.camel@hawk.dlqj.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 09 Jan 2004 22:01:30 -0600 Content-Transfer-Encoding: 7bit Subject: hp date stamp ink cartridges X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2004 04:01:49 -0000 #!/bin/sh # # hpif - Simple text input filter for lpd for HP-PCL based printers # Installed in /usr/local/libexec/hpif2 # # Simply copies stdin to stdout. Ignores all filter arguments. # Tells printer to treat LF as CR+LF. Ejects the page when done. printf "\033&k2G" && cat && printf "\033&l0H" | sed -e 's/@PJL SET DATE=[0-3][0-9]-[01][0-9]-20[0-9][0-9]/@PJL SET DATE=01-12-2001/g' && exit 0 exit 2 Thanks to the suggestion of the sed syntax I've tried a few renditions of this script. (Sorry I forget who was the kind person with this syntax) I've been through a reload and could have sworn I had a backup of my mail directory :-P doh! I've put the sed part after first ""printf "\033&k2G" && sed -e 's/@PJL SET DATE=[0-3][0-9]-[01][0-9]-20[0-9][0-9]/@PJL SET DATE=01-12-2001/g' ..."" I've even tried piping it after the first printf. It still doesn't change the date on the dfA009. If I sed -e 's/@PJL SET DATE=[0-3][0-9]-[01][0-9]-20[0-9][0-9]/@PJL SET DATE=01-12-2001/g' dfA009 > dfA009. It does change the line just fine. And I've tried cat | sed ... and no success either. Any suggestions? Thanks, pixfbsd 'given an OS choice I'd "pick FreeBSD"'