Listing 3. Filter to Insert Carriage Return for HP

#!/bin/sh
# filter for text to HP printers
awk '{printf "%s\r\n",$0}' -