sort -n +1 a_file > a_sorted_file #### sort -n +1 a_file | head -5 > first_five_sorted