how to search search & delete line in vi editor
the below command in vi editor will remove the whole line that contains the word “search-keywords” on the entire file.
:g/search-keywords/d
Related posts:
- Linux/Unix Search and Replace Text from Multiple Files In Linux/Unix, for newbie to do search text from multiple...
- sed with multiple criteria sed -e 1d -e 50d -e ‘/junks/d’ would remove first...
- PostgreSQL Database psql Command Line Query Sometime psql command line query can be useful when it...
- Error in suphp.c on line Am experimenting suphp on several servers for security reason. During...
- windows 2000 – command line (cmd) command auto completion By default, windows 2k server does not activate this function....
- How to Set VI or VIM Tab Space By default, vi or vim editor tab space is 8...
- vim – search & replace was searching what is the escape sequence for tab &...
- postgresql82-server compile error on Apple Leopard with Macports 1.5 I wasn’t able to compile postgresql82-server on my machine, it’s...