Hi there,
is it possible to use wild cards in this statement
ssh $remote_server 'perl -pi -e "s,EXP_SERIAL_19b8be67=\"\",EXP_SERIAL_`hostid`=\"UNKNOWN\"," /var/myfile'
This command works fine but the bit in bold (the 8 character hostid) will not always be 19b8be67 so I was hoping I could use some sort of wildcard that indicates the 8 characters directly after EXP_SERIAL_
ie something like
ssh $remote_server 'perl -pi -e "s,EXP_SERIAL_$$$$$$$$=\"\",EXP_SERIAL_`hostid`=\"UNKNOWN\"," /var/myfile'
Does anybody know how I could achieve this?
Cheers