in reply to extract only smallest numbers
sort -n +1 a_file > a_sorted_file [download]
sort -n +1 a_file | head -5 > first_five_sorted [download]