Large

AMO - Skip to Install

By Captain Canuck Last update Jun 5, 2010 — Installed 2,549 times.

How to calculate Logical Lines of Code

in
Subscribe to How to calculate Logical Lines of Code 1 post, 1 voice

Captain Canuck Script's Author
FirefoxX11

Firefox + Linux:

path=~/.mozilla/firefox
cd $path/`ls $path | grep -E '[[:alnum:]]{8}\.[^ini]'`/gm_scripts/amo_-_skip_to_install/
grep -c -P '^(?!(\/\/))[^\;\n]*?(if|function|;)[^\;\n]*' *
cd

Songbird + Linux:

path=~/.songbird2
cd $path/`ls $path | grep -E '[[:alnum:]]{8}\.[^ini]'`/gm_scripts/amo_-_skip_to_install/
grep -c -P '^(?!(\/\/))[^\;\n]*?(if|function|;)[^\;\n]*' *
cd

NOTE: This isn't a universal line counter, as you can see it only works for this script.

Other Platforms will hopefully be supported, please suggest methods below.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel