💻 Software
List all unique extensions for files contained in a directory
Fresh5 days ago
Mar 15, 202619098 viewsConfidence Score0%
0%
Problem
I would like to see all the unique extension of files contained in a certain directory. What is the command to do that in bash? One could use to get all the files in the current directory, then strip the extension, and pipe it to . What's the easiest way to strip the extension?
Error Output
find . -type f
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: List all unique extensions for files contained in a directory
Low Risk
Try this: It outputs nothing for: Files with no extension Files with names that end in a dot Hidden files It also might be useful to pipe it to .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix