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
This page was last updated: 2025-02-20 Thu 02:55. Source