5 ms·
Full paths are probably used to avoid malicious $PATH issues (https://cwe.mitre.org/data/definitions/426.html https://cwe.mitre.org/data/definitions/426.html).
by thegeekpirate 6y ago
Full paths are probably used to avoid malicious $PATH issues (https://cwe.mitre.org/data/definitions/426.html https://cwe.mitre.org/data/definitions/426.html).
It should just be `sort -rn | uniq`, no point in sorting the list twice.
- 29athrowaway 6y agoThat's incorrect. "uniq -c" adds a column with the count of unique elements. For the purposes of returning the most frequent elements, you can only do the final sort once that column has been added.