Outputs list of $PATH dirs sorted by line length | Bash

January 30th, 2021 10:23:23 PM

					
echo -e ${PATH//:/\\n} | awk '{print length, $0}' | sort -n | cut -f2- -d' '

Featured Posts