3 ms·
Example: Take some log text, where all you're interested in is the messages, and you don't want hostname/date/time/etc cruft. 1. Ctrl+A Select all the lines 2
by amatix 14y ago
Example: Take some log text, where all you're interested in is the messages, and you don't want hostname/date/time/etc cruft.
1. Ctrl+A Select all the lines
2. Ctrl+Shift+L to split into multiple cursors, 1 per line
3. Home/Ctrl+Shift+arrows/etc to select stuff to copy/delete
I find it easier than constructing a regex to pass to find/replace.