You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terminalforlife fa546de881 Add lenchk (max_length functionality, and some)
Hope this helps. I wish I'd known this is what you were after, but I
guess it didn't click! This is an area I love and excel at, so I
hoped to put that to use here.

* The colorization flag might help when there are a lot of results.

* By far, the indented line number and preview of the offending lines
  is the most useful aspect of lenchk, making it much easier to track
  down troublesome lines, especially for the inexperienced.

* I've accounted for `//` lines (C languages), although some like
  Javascript, HTML, and CSS I've yet to get around to.

* There's a summary, which is probably pointless, but it might help to
  keep track of our progress in getting through the files.

* It's ever-so-slightly more efficient and portable, but ultimately, -
  I'd say making it use just /bin/sh would be better, but Bash is
  pretty common-place these days, and has features which make lenchk
  much cleaner.

  Ideally, I'd have written this in Perl, due to the limited lifespan
  of this tester, because a shell can only handle so much data before
  it starts to chug. I figured, however, that not everyone will have
  Perl.

If this commit isn't accepted, no worries, as I'm sure I can repurpose
it for use elsewhere.

Want it, but have issues? Let me know, and I'll get on that ASAP.

Note that I've removed max_length in this commit, to avoid confusion.
4 years ago
see_also added Bash-Snippets links 7 years ago
sheets fix the style 4 years ago
tests Add lenchk (max_length functionality, and some) 4 years ago
LICENSE Initial commit 7 years ago
README.md add link to the issue page 4 years ago

README.md

cheat.sheets

Own cheat sheets repository of the cheat.sh.

If you want to add a cheat sheet to cheat.sh directly, add it here (please also consider adding your cheat sheet to one of the upstream repositories).

When adding a cheat sheet please use the following format:

# Command name
# Short command description

# Command usage example1 started with some comments
# and followed with a command example/switches.
command1

# Command usage example2.
# Each block separated with an empty line.
command2

For example:

# curl
# Command-line tool for transferring data with URL syntax

# Process a single GET request, and show its output on stdout.
curl http://path.to.the/file

Requirements and constraints:

  • Maximum length of a comment line (including comment sign) is 80

Other requirements can be proposed and discussed in #101