How to count number of files in a directory that are over a certain file sizeHow do I count all the files...

QGIS Welcome page: What is 'pin to list' for?

What would be the ideal melee weapon made of "Phase Metal"?

How can one write good dialogue in a story without sounding wooden?

A DVR algebra with weird automorphisms

Robbers: The Hidden OEIS Substring

Optimising Table wrapping over a Select

Does Google Maps take into account hills/inclines for route times?

Why does Hellboy file down his horns?

affect vs effect

Is it rude to tell recruiters I would only change jobs for a better salary?

The monorail explodes before I can get on it

Keep milk (or milk alternative) for a day without a fridge

As a DM, how to avoid unconscious metagaming when dealing with a high AC character?

Why does resistance reduce when a conductive fabric is stretched?

Email about missed connecting flight compensation 5 months after flight, is there a point?

Filtering fine silt/mud from water (not necessarily bacteria etc.)

How the name "craqueuhhe" is read

Extract an attribute value from XML

Cubic programming and beyond?

Can I intentionally omit previous work experience or pretend it doesn't exist when applying for jobs?

During copyediting, journal disagrees about spelling of paper's main topic

How can I deal with a player trying to insert real-world mythology into my homebrew setting?

Are randomly-generated passwords starting with "a" less secure?

Why did my rum cake turn black?



How to count number of files in a directory that are over a certain file size


How do I count all the files recursively through directoriesFind files greater than X value, sort by size, show in ls formatWhat's the most resource efficient way to count how many files are in a directory?Count files in a directory by extensionget file size and line count at the same timeFind Directory if Number of files is over XFind files that match a certain size and modification time?How to count subprocesses that reached certain stateReferencing multiple files that are not a certain file type in a directoryRecursively count number of files in folders in tar fileHow to get the number of records in a directory that has .tsv extensionHow to count the number of bytes in a file, grouping the same bytes?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?










share|improve this question







New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Possible duplicate of Find files greater than X value, sort by size, show in ls format

    – muru
    1 hour ago











  • Combined with unix.stackexchange.com/questions/4105/…

    – muru
    1 hour ago


















0















Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?










share|improve this question







New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Possible duplicate of Find files greater than X value, sort by size, show in ls format

    – muru
    1 hour ago











  • Combined with unix.stackexchange.com/questions/4105/…

    – muru
    1 hour ago














0












0








0








Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?










share|improve this question







New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?







linux shell-script shell terminal command






share|improve this question







New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 3 hours ago









Travis TinerTravis Tiner

1




1




New contributor



Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Travis Tiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • Possible duplicate of Find files greater than X value, sort by size, show in ls format

    – muru
    1 hour ago











  • Combined with unix.stackexchange.com/questions/4105/…

    – muru
    1 hour ago



















  • Possible duplicate of Find files greater than X value, sort by size, show in ls format

    – muru
    1 hour ago











  • Combined with unix.stackexchange.com/questions/4105/…

    – muru
    1 hour ago

















Possible duplicate of Find files greater than X value, sort by size, show in ls format

– muru
1 hour ago





Possible duplicate of Find files greater than X value, sort by size, show in ls format

– muru
1 hour ago













Combined with unix.stackexchange.com/questions/4105/…

– muru
1 hour ago





Combined with unix.stackexchange.com/questions/4105/…

– muru
1 hour ago










1 Answer
1






active

oldest

votes


















1














Perhaps



find path/to/directory/ -type f -size +100M -printf 1 | wc -c


Or, if you want to limit the search to the top level directory only (without descending into subdirectories)



find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c





share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529923%2fhow-to-count-number-of-files-in-a-directory-that-are-over-a-certain-file-size%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Perhaps



    find path/to/directory/ -type f -size +100M -printf 1 | wc -c


    Or, if you want to limit the search to the top level directory only (without descending into subdirectories)



    find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c





    share|improve this answer




























      1














      Perhaps



      find path/to/directory/ -type f -size +100M -printf 1 | wc -c


      Or, if you want to limit the search to the top level directory only (without descending into subdirectories)



      find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c





      share|improve this answer


























        1












        1








        1







        Perhaps



        find path/to/directory/ -type f -size +100M -printf 1 | wc -c


        Or, if you want to limit the search to the top level directory only (without descending into subdirectories)



        find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c





        share|improve this answer













        Perhaps



        find path/to/directory/ -type f -size +100M -printf 1 | wc -c


        Or, if you want to limit the search to the top level directory only (without descending into subdirectories)



        find path/to/directory/ -maxdepth 1 -type f -size +100M -printf 1 | wc -c






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        steeldriversteeldriver

        40.8k4 gold badges56 silver badges93 bronze badges




        40.8k4 gold badges56 silver badges93 bronze badges






















            Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.













            Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.












            Travis Tiner is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529923%2fhow-to-count-number-of-files-in-a-directory-that-are-over-a-certain-file-size%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...