find_ext : print each ext on separate line.
This commit is contained in:
parent
4c66a9c553
commit
a6438e0e5f
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue