Friday, May 25, 2018

Linux: Delete all lines from a file using vi

:1,$d

:1 -> Enters the command mode
1,$ -> All lines
d -> delete

No comments:

Post a Comment