8 lines
167 B
Bash
8 lines
167 B
Bash
# Find all file types recursively.
|
|
find_types()
|
|
{
|
|
local types=($(find -type f | sed "s/.*\.//"))
|
|
echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '
|
|
echo
|
|
}
|