[DM-MUG] Fwd: Request of MUG people
kristau
kristau at gmail.com
Tue Apr 3 21:31:48 CDT 2007
Might be too late, but here's a quick way to find the answer to their
last question about how many folders you have:
1 - Open a terminal
2 - Type the following command:
ls -lR | grep "^d" | wc -l
That will give you a count of how many directories you have in your
user directory. There are a lot of "system" and "hidden" folders, so
I narrowed things down by listing several folders I wanted counted
after the 'ls -lR' bit as follows:
ls -lR Documents/ Music/ Downloads/ Desktop/ Pictures | grep "^d" | wc -l
For the curious, this command line breaks down as follows:
- 'ls -lR': List the files in long format and recurse, or dig through
the directory tree.
- 'grep "^d"': Count only lines that start with the letter 'd'. This
effectively makes a listing of only the directories.
- 'wc -l': wc is the venerable "Word Count" and -l makes it count
lines instead of words.
With the | character in between each of these, the output from the
prior command is fed in to the next command. Chained together, each
stage filters a bit more of the information until you get a simple
number at the end, the count of all your directories.
On 3/30/07, Victoria L. Herring <lists at herringlaw.com> wrote:
>
>
> I did it and it was fine and not too long. Basically is about how one
> searches files using a Mac.
>
>
>
>
> From: Ofer Bergman <O.Bergman at sheffield.ac.uk>
> Date: March 26, 2007 10:31:14 AM CDT
> To: president at dmmug.org
> Subject: Request to contact DM-MUG members regarding a Mac related Web
> survey
>
>
> Dear DM-MUG President,
>
> My name is Ofer and I'm a researcher at Sheffield University UK. As part of
> an international research project we have developed a short Web survey
> regarding file retrieval for Macintosh users. If possible I would like to
> ask members of the DM-MUG to participate in it. The link to the survey is
> http://www.surveymonkey.com/s.asp?u=133413536292 .
>
> A few words about it:
>
>
>
> It's very short - contains only 16 questions and takes about 5 minutes to
> complete.
> It's completely anonymous and confidential.
> It serves only academic non-commercial purposes.
> We are depending on the good will of Mac users - without it we cannot do
> this research. Would it be possible to contact DM-MUG members?
>
> Many thanks,
>
> Dr. Ofer Bergman
>
> Marie Curie Research Fellow
>
> Information Studies Department, Sheffield University
>
> Regent Court, 211 Portobello Street, Sheffield, S1 4DP, UK
>
> Email: O.Bergman at sheffield.ac.uk
>
> Tel: +44-(0)114-2226348
>
> Fax: +44 (0) 114 278 0300
>
> http://ir.shef.ac.uk/people.html
>
>
> --
>
>
> Victoria L. Herring, Attorney, Travel Research & Photography site,
> <http://www.JourneyZing.com> [NEW: Athens/Greece Trip Report] ; Online
> Gallery at http://victoriajz.smugmug.com. Images up now at Arte Gallery,
> East Village in Des Moines, and you can view them online at
> http://web.mac.com/victoriaherring/iWeb/Gallery .
> _______________________________________________
> DMMUG mailing list
> Use this Address to send mail to the list:
> DMMUG at dmmug.org
> Use this page to modify subscription options:
> http://cialug.org/mailman/listinfo/dmmug
>
--
Tired programmer
Coding late into the night
The core dump follows
My GNUPG public key is available at http://www.kristau.net/public_key.asc
More information about the Dmmug
mailing list