Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> Utilities >> vi >> Examples of how to use vi within a script to edit a file

(1)  Edit file named test.txt and ad the string " world" at the end and then quit and save

$ vi test.txt -c ':%s/$/ world/' -c ':wq!'

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]