>>137
>>137
> 2行目から5行目
cat filename | head -n 5 | tail -n $((5 - 2 + 1)) | sort

> 3行目以降
cat filename | tail -n +3 | sort