Loading ...
Sorry, an error occurred while loading the content.

49552>> help with scripting vim

Expand Messages
  • lists@zeta.net
    Apr 22, 2004
    • 0 Attachment
      Hello list,

      I am stuck trying to write a bash shell script that can edit a text file.
      I was hoping that someone could show me how to do this with vim from
      within a bash script.

      Here's what I need to do:

      open file test.txt with vim
      search for 192.168.1.1 and replace with 192.168.1.2
      save the file and exit vim


      Thanks,
      devin
    • Show all 9 messages in this topic