I had the same idea... except using ruby:
require 'find'
dirs =
["/workspaces/flex_sdk/trunk/frameworks/projects/framework/src","/workspaces/flex_sdk/trunk/frameworks/projects"]
dirs.each do |dir|
count = 0
Find.find(dir) do |path|
if (path =~ /(\.as|\.mxml)/)
if(path =~ /\.svn-base/)
#ignore
else
count += 1
end
end
end
puts "In #{dir} there are #{count} files that match the filter."
end
OUTPUT:
[/workspaces/flex_sdk/trunk/frameworks/projects/framework/src] 696 matches
[/workspaces/flex_sdk/trunk/frameworks/projects] 1366 matches
On Tue, Dec 16, 2008 at 3:02 PM, Maciek Sakrejda <[email protected]>wrote:
> Our FlexBuilder may be in perpetual alpha, but on Linux, at least we've
> got some basic tools on our platform and don't have to resort to boorish
> counting ;)
>
> find $FLEX_HOME/frameworks/projects/framework/src -name \*.mxml -o -name
> \*.as | wc -l
> 669
>
> If I include projects/* instead (including air, rpc, automation), it's
> 999.
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
--
Cheers,
Nate
----------------------------------------
http://blog.natebeck.net