Sort
The sort
tool is a Linux command line tool that, as the name implies, sorts
supplied text.
For example this command:
awk -F "/" '/^\// {print $NF}' /etc/shells
If we take that same command and pipe it into sort
:
awk -F "/" '/^\// {print $NF}' /etc/shells | sort
We get:
bash bash fish fish git-shell sh sh