Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 02:13:53 -0500
From:      "Craig Reyenga" <craig@craig.afraid.org>
To:        "Dave Carrera" <dave@ephgroup.com>
Cc:        questions@freebsd.org
Subject:   Re: Simple file count question
Message-ID:  <000701c40b26$3d5797f0$0200000a@redline>
References:  <002501c40b24$8c600e10$0301a8c0@daveslaptop>

next in thread | previous in thread | raw e-mail | index | archive | help
find /path/to/dir -type f -name db\* -print | wc -l

would count the number of files that begin with 'db' in the name, under the
'/path/to/dir' directory. man find and man wc for more action.

-Craig


----- Original Message -----
From: "Dave Carrera" <dave@ephgroup.com>
To: <freebsd-questions@freebsd.org>
Sent: Tuesday, March 16, 2004 2:01 AM
Subject: Simple file count question


Hi List,

I know this is going to be simple but I cant find a suitable answer by
trawling the web so I ask how do I count the number of certain files in a
directory?

So I am in my dir and want to count how many files begin with db and show me
the number.

I hope you can help me and thank you in advance for any help you may give

Dave C

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.622 / Virus Database: 400 - Release Date: 13/03/2004


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000701c40b26$3d5797f0$0200000a>