diff --git a/script/sort-file b/script/sort-symbol-file similarity index 70% rename from script/sort-file rename to script/sort-symbol-file index 2601742..53b9346 100644 --- a/script/sort-file +++ b/script/sort-symbol-file @@ -8,4 +8,6 @@ if [ $# -eq 0 ] exit 1 fi -awk 1 $1 | sort -k2 -t' ' \ No newline at end of file +mv $1 "$1.bak" +awk 1 "$1.bak" | sort -k2 -t' ' > $1 +rm "$1.bak" \ No newline at end of file