A simple line-length checker
- Handles multiple files and redirected input
- Flexible output options
- Handles tabs and unicode
- Includes command-line wrapper and core library function
-
Simply copy
lingthandlingth.phpto a directory β any directory, but the same one. -
Run by specifying full path to
lingthcommand, adding its directory to yourPATHenvironment variable, or symlinking from a directory already inPATH
lingth [-chHlnp] [-m num] [-t num] [file ...]
[--help]
-cDon't show content-hDon't show filenames-HShow filenames-lDon't show length-LShow length-m numSet length limit-nDon't show line numbers-NShow line numbers-pDon't replace tabs with spaces-PReplace tabs with spaces-t numSet tab width in spacesfile ...The pathnames of files to be scanned for long lines. If no file arguments are specified, the standard input is used.--helpDisplay this help and exit
lingth *.php
lingth -m22 /usr/share/dict/words
echo foo | lingth -hln -m 2
echo 'ππ' | lingth -m1