|passes stream 1 of the command on the left to the standard input of the command on the right; a filter given no file name reads that input.- Repeats in a column are counted with
cut … | sort | uniq -c: uniq glues together only neighbouring lines, so sort goes before it. sort -rn | head -n 3keeps the three most frequent lines. A long pipeline is built one link at a time, checking the output throughhead.- The colleague's command at the start of the lesson has five links: the addresses, sorting, counting, ordering from high to low and the top three lines.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson