fixed roster count command

This commit is contained in:
James Tomasino 2018-12-20 12:12:57 -05:00
parent 2c51ebc1b8
commit a15541d8d0
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ done
if [ "$#" -ne 1 ]; then
sort "$temp_roster" | column -s "%%" -t
elif [ "$1" = "count" ]; then
sort "$temp_roster" | awk 'FS="%%" {print $1}' | uniq -c
sort "$temp_roster" | awk -F "%%" '{print $1}' | uniq -c
else
sort "$temp_roster" | column -s "%%" -t | grep -i "$*"
fi