Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: deleting a non-numeric scalar within array

by poolpi (Hermit)
on Dec 03, 2010 at 12:28 UTC ( #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


Comment on Re: deleting a non-numeric scalar within array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-05-25 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (491 votes), past polls