Commit Diff
--- index.md +++ index.md @@ -47,6 +47,14 @@ Helpful documents: :%s/^.\{0,5\}// +#### Delete all lines N (10) characters long + + :g/^.\{10\}$/d + +#### Delete all lines _except_ N (10) characters long + + :g!/^.\{10\}$/d + #### Search and replace PATHs, using different delimiter :%s#/usr/local/log#/var/log#g