'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
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.
- [Trisquel-users] Removing unwanted carriage returns amenex
- Re: [Trisquel-users] Removing unwanted carriage returns vas1980i
- Re: [Trisquel-users] Removing unwanted carriage returns amenex
- Re: [Trisquel-users] Removing unwanted carriage returns vas1980i
- Re: [Trisquel-users] Removing unwanted carriage retu... amenex
- [Trisquel-users] Re : Removing unwanted carriage ret... lcerf
- [Trisquel-users] Re : Removing unwanted carriage returns lcerf
- Re: [Trisquel-users] Removing unwanted carriage returns amenex
- Re: [Trisquel-users] Removing unwanted carriage returns amenex
