Merge branch 'master' of ttm.sh:cosmic/cosmic

This commit is contained in:
James Tomasino 2018-12-07 15:44:43 -05:00
commit 77933e86e9

View File

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