Terminology: "script" versus "program"

Paul McNett p at ulmcnett.com
Fri Jan 25 07:03:19 CET 2008


Steven D'Aprano wrote:

> Linux/Unix/Mac admins may be excused for saying that they've never come 
> across a .BAT file at all.
> 
> $ locate .bat | wc -l
> 14


> $ locate .sh | wc -l
> 606


$ locate .bat | wc -l
115
$ locate .sh | wc -l
763
$ locate .py | wc -l
44030

Hmmm... that matched all the .pyo and .pyc files, too. Not fair.

$ locate -r '\.py$' | wc -l
17425
$ locate -r '\.sh$' | wc -l
278
$ locate -r '\.bat$' | wc -l
49

Still a bit unbelievable, although I do have all the branches and tags 
checked out of my main projects, and I tend to make lots of little .py 
files so most of that 17,425 number is probably me.

Paul

-- 
http://paulmcnett.com



More information about the Python-list mailing list