6 lines
177 B
Bash
6 lines
177 B
Bash
# Find all file extensions.
|
|
find_ext() {
|
|
local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//"))
|
|
echo "${types[@]}" | tr ' ' '\n' | sort -u
|
|
}
|