Hi, I would like to grab specific information out of the /etc/qconfig file... what I want is everything in the block starting with printxxx and then pxxx
eg.
>cat /etc/qconfig
print146:
device = hp@p146
hp@p146:
file = /var/spool/lpd/pio/@local/dev/hp@p146.server#hpJetDirect#9100
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piojetd p146.server 9100
I have over 100 printers so would like to find the easy option instead of manually cutting and pasting my way through the qconfig file.
thanks
eg.
>cat /etc/qconfig
print146:
device = hp@p146
hp@p146:
file = /var/spool/lpd/pio/@local/dev/hp@p146.server#hpJetDirect#9100
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piojetd p146.server 9100
I have over 100 printers so would like to find the easy option instead of manually cutting and pasting my way through the qconfig file.
thanks