Linux/Unix Cookbook

just recipes..

Monday, January 28, 2013

Search and replace Sed, Vim

Sed

sed -i 's/foo/bar/g' filename


Vim

:%s/foo/bar/g
Posted by leo at 6:36 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (2)
    • ►  May (1)
    • ►  January (1)
  • ►  2014 (8)
    • ►  December (1)
    • ►  November (2)
    • ►  September (1)
    • ►  July (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2013 (12)
    • ►  December (2)
    • ►  June (1)
    • ►  May (1)
    • ►  March (3)
    • ▼  January (5)
      • Search and replace Sed, Vim
      • Xen - Moving Virtual Disk Images (VDIs) between SRs
      • Postfix masquerading
      • Multipathing on Xen
      • multipath config
  • ►  2012 (11)
    • ►  December (2)
    • ►  October (2)
    • ►  September (2)
    • ►  August (5)

About Me

leo
View my complete profile
Awesome Inc. theme. Powered by Blogger.