sed's man(1) page, section "sed addresses", has a note: https://github.com/openbsd/src/blob/16748403c325ab5b4e9457bf8f0879a6698daba9/usr.bin/sed/sed.1#L175-L176 > (If the second address is a number less than or equal to the line number first selected, only that line is selected.)
to me, this makes it sound as if the second address would be selected, so as if in the range `3,1` line 1 would be selected, when in actuality it is line 3 ```ksh $ sed -n 3,1p <<EOF > one > two > three > EOF three ``` I recommend the note to be made clearer, by being explicit about "that line" > (If the second address is a number less than or equal to the line number first selected, only the first address is selected.) Best, Luka P.S. it is after midnight here