Re: sed help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 9 Mar 2010, chloe K wrote:

> Hi
>
> Can I know how to use sed to substitue 2 instead of 1 at the same time?
>
> eg:
>
> sed 's/pchloe.com/abc.com/ ; /192.92.123.5/10.10.0.3/g' orgfile >> newfile

sed \
   -e 's/pchloe\.com/abc.com/g' \
   -e 's/192\.92\.123\.5/10.10.0.3/g' \
   orgfile >> newfile

-- 
Paul Heinlein <> heinlein@xxxxxxxxxx <> http://www.madboa.com/
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux