Agnus Dei (jackal) wrote,
Agnus Dei
jackal

Sort a file by last name / last column

awk '{print $NF, $0}' /tmp/foo |sort | sed 's/[^\ ]*//' |sed 's/[^a-zA-Z]*//'

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments