/ script / sort-symbol-file
sort-symbol-file
 1  #!/usr/bin/env bash
 2  
 3  # this script just collects symbols into one file for convenience
 4  
 5  if [ $# -eq 0 ]
 6    then
 7      echo "Select a file"
 8      exit 1
 9  fi
10  
11  mv $1 "$1.bak"
12  awk '$2 = toupper($2)' "$1.bak" | awk 1 - | sort -k2 -t' ' > $1
13  rm "$1.bak"