I have a text file, containing the string ${whois}
.
I wish to replace ${whois}
with a whois
command output of an IP address or domain. The result of a whois
is pretty long and it generally goes wrong with everything I've tried to far.
I get errors such as unterminated 's' command
or invalid regular expressions
, and so on.
Can anyone provide me a working command that replaces the keyword ${whois}
with a whois
output of a domain or IP address?
tags instead of enters? – Dennis van der Veeke Nov 20 '16 at 11:33