Re: - OT - VIM - recording

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



On Tue, 14 Jul 2009 17:07:38 -0400 Ed Donahue wrote:
>
>
>Is it possible in vim to do the following:
>
>Search for this block of data:
>
>        # Catalog Service 2.0 for uat03
>        <LocationMatch "^/Services/?">
>        PathPrepend /inquiryservices
>        Cluster 172.21.1.1:999
>        </LocationMatch>
>
>And change Cluster 172.21.1.1:9999 to Cluster 172.21.1.2:7000

If I were tackling this, I'd start with awk

-- 
 Julian Thomas:   jt@xxxxxxxxx    http://jt-mj.net
 In the beautiful Genesee Valley of Western New York State!
 -- --
 "Meddle not in the affairs of Dragons,
  for thou art crunchy and taste good with ketchup."
  [stolen from somewhere else]


_______________________________________________
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