SUMMARY: How to remove '*' on a line in a file?

From: Stephanie C <stepchung_at_gmail.com>
Date: Thu May 08 2008 - 18:48:43 EDT
Thanks to Sander for quick response, really appreciate.

perl -pi -e 's/\*dollars\*/dollars/g'

On Thu, May 8, 2008 at 3:38 PM, Stephanie C <stepchung@gmail.com> wrote:

> Hi- I have many text files that has '*dollars*' word in the line. I want to
> remove the '*'. I have tried the following syntax:
>
> perl -pi -e 's/*dollars*/dollars/g' filename (doesn't work, without '*' it
> replaces the string fine, '*' seems to treat as a wild card)
>
> I have to use perl because it changes directly to the filename so I don't
> have to redirect to a different filename and copy it back to original
> filename as 'sed' does.
>
> 'sed' doesn't work either.
>
> Thanks for your help!
>
> Step
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu May 8 18:49:37 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:11 EST