#II have this command that I've created and would like to place it in a variable.
sort -k 1,1 | tr " " "\n" | users | wc -l
sort -k 1,1 | tr " " "\n" | users | wc -l
#SuchSuch as the one bellowbelow, however, as of now the output produces an error and does not work correctly
us_num=$(users | tr " " "\n" | sort -k 1,1 | wc -l)
echo "Currently there is $(us_num) number of users on the server."
us_num=$(users | tr " " "\n" | sort -k 1,1 | wc -l)
echo "Currently there is $(us_num) number of users on the server."
#AnyAny ideas?