Besides being hard to learn, and unless I am mistaken, 'vim' loads the entire file into main memory before the user can input commands, in an interactive way. Like any text editor. That does not scale to million-line files or to complex commands you want to frequently apply on different files. In that situation, non-interactive text-processing commands, typically called by a Shell script, become necessary.

'sed' (which compete with 'vi' for the worst syntax ever) or 'awk' (e.g., redefining RS) can handle multiline patterns. Both are actually Turing-complete. However, in that case, it appears that a simpler Nmap output can be processed: https://nmap.org/book/output-formats-grepable-output.html

Reply via email to