find_ext : print each ext on separate line.

This commit is contained in:
Dmitry Voronin 2023-11-26 00:10:31 +03:00
parent 4c66a9c553
commit a6438e0e5f

View file

@ -2,6 +2,5 @@
find_ext()
{
local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//"))
echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '
echo
echo "${types[@]}" | tr ' ' '\n' | sort -u
}