Results 1 to 3 of 3

Thread: Bash command to count files ?

  1. #1
    Join Date
    Nov 2006
    Beans
    716

    Bash command to count files ?

    Hi,
    Can you help me please?

    I would like to count all the jpgs in my home folder

    I need a command like this:

    ~$ Sudo count -R /*/*.jpg

    Thanks
    nnjond

  2. #2
    Join Date
    Oct 2008
    Beans
    105
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Bash command to count files ?

    I would think something like....

    Code:
    find -name *.jpg | nl
    might work?

  3. #3
    Join Date
    Apr 2010
    Beans
    Hidden!

    Re: Bash command to count files ?

    Code:
    find $HOME -name *.jpeg | wc -l

    When I rebooted it, it got stuck at some GBRug command prompt ..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •