Moved to use %% over | in roster as delimiter

This commit is contained in:
aewens 2018-12-07 20:42:39 +00:00
parent c4d99d2818
commit c03e03cc57

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