Just been reading up on this and it looks very useful, but I’m not sure if this is what I want. Sorry if I haven’t been very clear.
Where I have s/$uname/$answer/g; it’s the $uname part which is not changing within the hosts file
However it does change it after the FQN name part within the hosts file
In reply to Re^2: Search and replace within a file
by muizelaar
in thread Search and replace within a file
by muizelaar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |