JdV's Notes
My notes on: SAP, Oracle, Windows, AIX, Solaris and other stuff
Pages
(Move to ...)
Home
Map A Drive In Windows Command Prompt (DOS)
DB2 Notes
▼
Wednesday, 11 November 2009
To delete the contents of a file in VI
To delete the contents of a file in Unix editor vi:
When on the first line enter the command: dG
Anywhere else in the file: :1,$d
‹
›
Home
View web version