Bash: Find folders with less than x files
Fresh3 days ago
Mar 15, 20265477 viewsConfidence Score0%
0%
Problem
How would I go about finding all the folders in a directory than contain less than x number of files?
Error Output
.flac
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Bash: Find folders with less than x files
Low Risk
For every subdirectory, print the subdirectory name if there are at most 42 files in the subdirectory. To execute a command on the directories, replace by . POSIX compliant. Note that this command won't work to search for directories containing zero…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix