perl one liner

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am trying to rpelace a string in a file using a perl one liner"

I am replacing   dog   with    cat/litter

I have tried this:

perl -pi -e 's/dog/cat\/litter/g' file

Doesnt work..



Re: perl one liner wrote:
Quoted text here. Click to load it

Does so work.

Quoted text here. Click to load it

Read the posting guidelines.  Don't say that something doesn't work,
tell us what it actually did and what you expected it to do instead.


-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB

Site Timeline