mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 01:42:29 +00:00
fix(script): sort-symbol-file script now overwrites the original by creating a backup file
This commit is contained in:
parent
e1bab2b375
commit
cfb921e9fa
1 changed files with 3 additions and 1 deletions
13
script/sort-symbol-file
Normal file
13
script/sort-symbol-file
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# this script just collects symbols into one file for convenience
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "Select a file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv $1 "$1.bak"
|
||||
awk 1 "$1.bak" | sort -k2 -t' ' > $1
|
||||
rm "$1.bak"
|
||||
Loading…
Add table
Add a link
Reference in a new issue