Replacing a word

  • varma
  • Novice
  • Novice
  • varma
  • Posts: 31
  • Loc: India

Post 3+ Months Ago

Hi,

Good Morning,

I am new to Linux/Unix environment. Can any one tell me, how can I replace the number of occurances of a 'WORD' with another Word in a file after opening with VI Editor.

Thanks

Varma
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

1,$ s/word1/new_word/g

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 36 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.