A fixup function from /etc/rc.d/init.d/lpd in LPRng-3.6.22-5 does not
seem to be doing anything in particular (it does change a time stamp
on its input files). I am a bit at loss what it was supposed to be
doing. Something of that sort?
perl -pi -e 's/\\\s*$/\n/,s/:\s*$/\n/ unless /^\s*#/' input_file
Not that not running that harms anything, apparently.
this was meant to translate old printtool generated printcaps of the form:
for BSD lpd to LPRng style, new printtool printcaps: