You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to only get size information of files matching an extension(s) provided where the files are spread throughout multiple nested directories with other file content which file size I want to ignore.
My primary interest is total file size by extension in my case. Being able to get additional metrics like breakdown per directory or largest file locations (or largest directories of this content) are nice to haves.
Some tools provide ways to exclude files or directories, that can still be understandable and desirable in this context.
What is the syntax?
I'm not familiar with this tools CLI syntax as it's not documented and I've not yet downloaded/installed it to try it out.
I have used dutree with it's --agrr=500M option on directories with only the content I am interested in specifically (filtering is only useful here for a breakdown of different extensions, eg all image content and I want to know how much is PNG, what the top 10 sizes/paths are).
dutree also lacks filtering support. It does have an exclusion syntax -x but requires repeating this with every path you want to exclude, rather than a single string of delimited values.
In some software like Caddy I use a regex pattern (\.(jpeg|jpg|gif|png|webp|avif|svg)$) for caching requests, it also allows to specify multiple domains with comma delimiter (example.com,www.example.com,example.org). Anything like that as a value to some arg like --regex/--match/--filter-by/--pattern/etc would be good.
For interactive TUI, some users may find it convenient to instead interactively filter results instead.
I'm personally just interested in the ability to filter by file extension. Presently I am using the following shell script:
That's a tad limited in output and what can be easily done vs what the nicer CLI tools for disk usage offer, and in this case it's not filtering by specific extensions but for the given output that's not a concern (I can easily identify the extensions I am interested and their sum size, no further detailed information/breakdown to sift through).
Current tools allow me to exclude dirs or scan specific dirs. If the file content is mixed however, it limits the usefulness of insights beyond overview of top file/dir sizes (or aggregated dir sizes).
The text was updated successfully, but these errors were encountered:
polarathene
changed the title
Feature Request: Filter by files extension or regex
Feature Request: Filter files by file extension or regex
Aug 10, 2021
Referencing questions raised here:
I would like to only get size information of files matching an extension(s) provided where the files are spread throughout multiple nested directories with other file content which file size I want to ignore.
My primary interest is total file size by extension in my case. Being able to get additional metrics like breakdown per directory or largest file locations (or largest directories of this content) are nice to haves.
Some tools provide ways to exclude files or directories, that can still be understandable and desirable in this context.
I'm not familiar with this tools CLI syntax as it's not documented and I've not yet downloaded/installed it to try it out.
I have used
dutree
with it's--agrr=500M
option on directories with only the content I am interested in specifically (filtering is only useful here for a breakdown of different extensions, eg all image content and I want to know how much is PNG, what the top 10 sizes/paths are).dutree
also lacks filtering support. It does have an exclusion syntax-x
but requires repeating this with every path you want to exclude, rather than a single string of delimited values.In some software like Caddy I use a regex pattern (
\.(jpeg|jpg|gif|png|webp|avif|svg)$
) for caching requests, it also allows to specify multiple domains with comma delimiter (example.com,www.example.com,example.org
). Anything like that as a value to some arg like--regex
/--match
/--filter-by
/--pattern
/etc would be good.For interactive TUI, some users may find it convenient to instead interactively filter results instead.
I'm personally just interested in the ability to filter by file extension. Presently I am using the following shell script:
Which outputs results like this:
That's a tad limited in output and what can be easily done vs what the nicer CLI tools for disk usage offer, and in this case it's not filtering by specific extensions but for the given output that's not a concern (I can easily identify the extensions I am interested and their sum size, no further detailed information/breakdown to sift through).
Current tools allow me to exclude dirs or scan specific dirs. If the file content is mixed however, it limits the usefulness of insights beyond overview of top file/dir sizes (or aggregated dir sizes).
Related feature request for
dua
The text was updated successfully, but these errors were encountered: