in reply to deleting a non-numeric scalar within array
You could do this with in-place edition:
#perl -i.bak -pe 's/1\.1\.1\.1 hostname FQDN\n//g' /etc/hosts
hth,
PooLpi
'Ebry haffa hoe hab im tik a bush'.
Jamaican proverb
|
---|
In Section
Seekers of Perl Wisdom