Try this (not sure if it’s the best way, but it works):
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
It work as following:
- Find all files from current folder
- Prints extension of files if any
- Make a unique sorted list
More Related Contents:
- Linux grep command with relevant values as output
- How do I find all files containing specific text on Linux?
- How do I recursively grep all directories and subdirectories?
- How to grep for contents after pattern?
- How to ‘grep’ a continuous stream?
- How can I search for a multiline pattern in a file?
- Exploring Docker container’s file system
- Fastest way to find lines of a file from another larger file in Bash
- More elegant “ps aux | grep -v grep”
- How to escape single quotes in Bash/Grep?
- Quickly create a large file on a Linux system
- How to recursively find and list the latest modified files in a directory with subdirectories and times
- Using grep to get the next WORD after a match in each line
- How to concatenate multiple lines of output to one line?
- Does Linux guarantee the contents of a file is flushed to disc after close()?
- How to get the process ID to kill a nohup process?
- Finding contents of one file in another file
- Linux Script to check if process is running and act on the result
- why is the output of `du` often so different from `du -b`
- How to find all files containing specific text (string) on Linux?
- How to search and replace using grep
- git submodule update failed with ‘fatal: detected dubious ownership in repository at’
- No space left on device [closed]
- How to search contents of multiple pdf files?
- How do you search for files containing DOS line endings (CRLF) with grep on Linux?
- Using grep and sed to find and replace a string
- Extract lines between two patterns from a file [duplicate]
- Linux shell script to add leading zeros to file names
- Why no output is shown when using grep twice?
- How can I find all files containing specific text (string) on Linux?