The "modification to complete" does not run nmap in parallel with the rest of the command line. If you do not actually need "intermediate.txt", then remove '> intermediate.txt' and give '-' (which here means "standard input") to the -iL option. If you really want "intermediate.txt", then replace '> intermediate.txt' with '| tee intermediate.txt' and, again, give '-' to the -iL option. The single quotes in the two previous sentences are not to be copied.

'grep -C 0' asks for zero line of context: you only get the separator "--" than you then remove with Leafpad: do not use that option here! Then you can pipe (with '|') grep's output to 'sort'. Give it two arguments: '-' (again, it means "standard input" here) and the other file you want the selected lines added. You need neither Leafpad nor Libre Calc.

I am not sure I understand what you mean by "It remains to be seen how to manage that so the interlopers are discarded". Does it mean removing every line having one single field if that line is preceded (or maybe followed: sort's ordering depend on the localization of the system) by a line with the same first field? That is easy to do with a line of AWK... but, in the attached files, that would apparently remove all lines with one single field, i.e., all lines previously selected with 'grep'. That does not look right. Again, I would like an input (also to see what is sort's ordering), with all cases (lines that are discarded and lines that are not), and the respected output.

Reply via email to