How to count jpg files on a server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ruff
    I have a plan B
    • Aug 2004
    • 5507

    #1

    How to count jpg files on a server?

    How can I count the jpg files on my dedicated server? Is there a program out there I could use and would it put a huge load on the server while it's doing it?
    CryptoFeeds
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    use find

    Code:
    find -name '*.jpg' | wc -l
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    • ruff
      I have a plan B
      • Aug 2004
      • 5507

      #3
      Originally posted by fris
      use find

      Code:
      find -name '*.jpg' | wc -l
      Thanks
      will give it a try
      CryptoFeeds

      Comment

      • CYF
        Coupon Guru
        • Mar 2009
        • 10973

        #4
        this one might work a little better

        find / -name *jpg -print | wc -l
        Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
        AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

        Comment

        • ruff
          I have a plan B
          • Aug 2004
          • 5507

          #5
          I have this one as well. Looks like I'm going to have to brush up on my SSH run commands.

          find/ -type f -name"*.jpg" | wc -l

          What I really want to know is how badly can I fuck up my server with my miniscule amount of knowledge.
          CryptoFeeds

          Comment

          • CYF
            Coupon Guru
            • Mar 2009
            • 10973

            #6
            Originally posted by ruff
            I have this one as well. Looks like I'm going to have to brush up on my SSH run commands.

            find/ -type f -name"*.jpg" | wc -l

            What I really want to know is how badly can I fuck up my server with my miniscule amount of knowledge.
            the version I posted will do what you want, and it's simpler to type than the other two. running find on your server won't do any harm.
            Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
            AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

            Comment

            • Iron Fist
              Too lazy to set a custom title
              • Dec 2006
              • 23400

              #7
              Originally posted by ruff
              What I really want to know is how badly can I fuck up my server with my miniscule amount of knowledge.
              Try this one: rm -rf ~/*

              Let the partay begin!
              i like waffles

              Comment

              • CYF
                Coupon Guru
                • Mar 2009
                • 10973

                #8
                Originally posted by sharphead
                Try this one: rm -rf ~/*

                Let the partay begin!
                that would definitely fuck it up with a minuscule amount of knowledge
                Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
                AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

                Comment

                Working...