fixed roster count command
This commit is contained in:
parent
2c51ebc1b8
commit
a15541d8d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue