Re: 'analyzing code' and # of pro files [message #57183] |
Thu, 06 December 2007 09:11  |
Allan Whiteford
Messages: 117 Registered: June 2006
|
Senior Member |
|
|
R.G. Stockwell wrote:
> Just curious, how many *.pro files does everyone have?
>
The total number of .pro files I have in my home directory, from:
find ~ -name '*.pro' | sed 's/.*\///' | wc -l
is 39977.
The total number with unique names coming from:
find ~ -name '*.pro' | sed 's/.*\///' | sort | uniq | wc -l
is 5479.
Having seen those numbers for the first time, I'm a little worried about
the large difference between them number of files and the number of
unique files.
If I were to take a conservative guess at the directories I'd include as
projects if I ever used the DE then running the above command on the
relevant directories gives me 1977 files (1968 unique which is a much
nicer discrepancy to have!).
Thanks,
Allan
|
|
|
|
|
Re: 'analyzing code' and # of pro files [message #57380 is a reply to message #57183] |
Thu, 06 December 2007 09:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Allan Whiteford writes:
> The total number of .pro files I have in my home directory, from:
>
> find ~ -name '*.pro' | sed 's/.*\///' | wc -l
>
> is 39977.
>
> The total number with unique names coming from:
>
> find ~ -name '*.pro' | sed 's/.*\///' | sort | uniq | wc -l
>
> is 5479.
Don't worry, this is normal on UNIX systems. In my experience
debugging other people's code, it is likely you have 15 versions
of the Coyote directory in your path. And God knows how many
versions of the Astro library, which is older yet. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|