Hi,
I have recently created around 100 printers and need to modify one field in one line of each of the hundred configuration files:
FILE: /var/spool/lpd/pio/@local/custom/prt001:hp@p001
FILE: /var/spool/lpd/pio/@local/custom/prt002:hp@p002
:
:
FILE: /var/spool/lpd/pio/@local/custom/prt101:hp@p101
The field are as follows, I need to change the + to a ! at the end of the line.
prt001:MN@p001::614:_Zn%IWY:+
to
prt001:MN@p001::614:_Zn%IWY:!
The problem is that this is only one line of many in each configuration file.
Can anyone help??
I'm fine with getting each file as follows:
for i in `ls /var/spool/lpd/pio/@local/custom`
do
echo "This is the current file $i"
done
thanks in advance
I have recently created around 100 printers and need to modify one field in one line of each of the hundred configuration files:
FILE: /var/spool/lpd/pio/@local/custom/prt001:hp@p001
FILE: /var/spool/lpd/pio/@local/custom/prt002:hp@p002
:
:
FILE: /var/spool/lpd/pio/@local/custom/prt101:hp@p101
The field are as follows, I need to change the + to a ! at the end of the line.
prt001:MN@p001::614:_Zn%IWY:+
to
prt001:MN@p001::614:_Zn%IWY:!
The problem is that this is only one line of many in each configuration file.
Can anyone help??
I'm fine with getting each file as follows:
for i in `ls /var/spool/lpd/pio/@local/custom`
do
echo "This is the current file $i"
done
thanks in advance