#!/usr/bin/sort -r 1 sort reads from stdin, so it "sees" this input. 2 It also sees the first line, that is part of the input! 3 Since # is less than most other characters, it will show up 4 first in the output unless we use the "-r" switch - now it 5 shows up last