find_ext : print each ext on separate line.
This commit is contained in:
parent
4c66a9c553
commit
a6438e0e5f
|
@ -2,6 +2,5 @@
|
||||||
find_ext()
|
find_ext()
|
||||||
{
|
{
|
||||||
local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//"))
|
local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//"))
|
||||||
echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '
|
echo "${types[@]}" | tr ' ' '\n' | sort -u
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue