OHCOUNT(1)
๐ OHCOUNT โ like, the manual page, bestie ๐
okay so this is the manual for ohcount, version 3.0.0, and it lives in the User Commands section of your friendly neighbourhood manual. pull up a chair, grab a strawberry ๐, and let's get into it.
โจ NAME โจ
ohcount โ bestie this is literally the manual page for ohcount 3.0.0 ๐
๐ธ SYNOPSIS ๐ธ
ohcount [option] [paths...]
๐ฆ DESCRIPTION ๐ฆ
It's the Ohloh source code line counter command line tool. that's the whole vibe. it counts your lines.
๐ [option] can be one of the following:
-a,--annotate-d,--detect-h,--help-i,--individual-l,--license-re-s,--summary
๐ OPTIONS ๐
-a,--annotateโ show annotated source code ๐
Everything in the source code files it finds inside the paths you gave it gets emitted to stdout. and every single line gets prefixed with a tab-delimited language name plus its semantic categorization โ which is one of code, comment, or blank. yes, it labels every line's whole personality. main character energy fr fr.
-d,--detectโ find source code files ๐
Recursively hunts down every source code file within the paths you gave it. for each source code file it finds, the file name gets emitted to stdout, prefixed with a tab-delimited language name. it's giving detective but make it text output.
-h,--helpโ display this message ๐ซถ
that's it. that's the option. it shows you the help. iconic behaviour honestly.
-i,--individualโ count lines of code per file ๐งฎ
Counts lines in all source code files within the given paths, and emits a report of the lines of code, comments, and blanks in each language per file. so it's per-file, not just one big total. detail-oriented queen โจ
-l,--licenseโ displays detected licensing information contained in each source code file ๐
no cap, it sniffs out the license info sitting inside each source code file and shows you. legal girlies rise ๐
-reโ prints raw entity information to the screen (mainly for debugging) ๐
it just dumps the raw entity info straight to your screen. the manpage itself says it's mainly for debugging โ so like, this is a peek-behind-the-curtain moment, not your everyday tool. iykyk ๐
-s,--summaryโ count lines of code (default) ๐ฅ
Counts lines in all source code files within the given paths, and emits a report of the total number of lines of code, comments, and blanks in each language. and yes bestie, this is the default action โ if you don't pick anything, this is what you get. the default. the moment. periodt.
๐ [paths] ๐
[paths] can refer to any number of individual files or directories.
- Directories will be probed recursively. it goes all the way down, no skipping levels, we love a thorough queen ๐ง
- If no path is given, the current directory will be used. so if you're standing in a folder and just type
ohcount, it counts here. convenient fr fr.
โญ heads up bestie: if you pass nothing at all, you're still getting a summary of whatever's in the current directory. no args, no problem. ๐
and that's the whole page, babes. this was ohcount 3.0.0, from way back in September 2011, hanging out in the User Commands section. love that for her. slay, stay counting those lines, and drink some water ๐โจ๐๐ฆ๐ธ๐
๐ซถ
๐ฆ where this page comes from
- debian bookworm: ohcount 4.0.0-3
- debian trixie: ohcount 4.0.0-5
- ubuntu jammy: ohcount 4.0.0-1
- ubuntu noble: ohcount 4.0.0-4build2
- ubuntu resolute: ohcount 4.0.0-5
- ubuntu stonking: ohcount 4.0.0-5
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms