I have just realized that, contrary to the command line in the original post, the newer one ends with 'sort'. As a consequence, everything must run to completion before the output is written. Indeed the first line in the output can possibly be the last processed line. You probably want to modify the end of the newer command to save what sort receives: (...) | tee SyncIPv4/Random.IPv4.May2020.37.nMap.primary.oG_unsorted.txt | sort > SyncIPv4/Random.IPv4.May2020.37.nMap.primary.oG.txt

Reply via email to