Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: deleting a non-numeric scalar within array

by poolpi (Hermit)
on Dec 03, 2010 at 12:28 UTC ( [id://875157]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://875157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-16 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found