Program Help

Table of Contents


cnl

cnl (Convert NewLines) - Universal conversion of line endings in text.
The input can contain any combination of line endings.
Usage: cnl [-w|--Windows|-l|--Linux|-m|--Oldmac] [-p|--preserve-dates]
                         [-V|--verbose] [INFILE [OUTFILE]]
       cnl [-w|--Windows|-l|--Linux|-m|--Oldmac] [-p|--preserve-dates]
                         [-V|--verbose] FILE... DIRECTORY
       cnl -i|--in-place [-s|--subdirs] [-p|--preserve-dates] [-V|--verbose]
                         [-w|--Windows|-l|--Linux|-m|--Oldmac] FILE...
       cnl -h|--help|-v|--version
Arguments:
  FILE      - one or more files to convert
  DIRECTORY - convert FILE(s) into directory DIRECTORY
Options:
  INFILE  - the optional name of a file to read as input
  OUTFILE - the optional name of a file to write as output
  -h, --help:     show this help message
  -i, --in-place: overwrite each file with its converted file
  -w, --Windows:  use Windows line endings (CRLF) in the output
  -l, --Linux:    use Linux line endings (LF) in the output
  -m, --Oldmac:   use old Mac line endings (CR) in the output
  -p, --preserve-time
     preserve the file modification time and date
  -s, --subdirs
     also process matching files in subdirectories (requires option -i)
  -V, --verbose:  display each file's name as it is processed
  -v, --version:  show cnl's version, date, author and email address
Only one of options -w, -l and -m can be used at a time.  If none of -w,
-l and -m is given the system default line ending is used.  Options -p
and -s require option -i.

crs

crs detects CRs, LFs, CRLFs and LFCRs in ASCII and UTF-8 FILE(s).
It reports whether each file has each type of line ending, and shows the total
number of files containing each type of line ending.
Usage: crs [-s|--subdirs] [-n|--no-separator] [-V|--verbose]
                [--cr] [--lf] [--crlf] [--lfcr] [--mixed] [FILE [...]]
       crs -h|--help|-v|--version
Options:
  -s, --subdirs       include matching files in subdirectories
  -n, --no-separator  don't add thousands separators to numbers
  --cr                show files with carriage return
  --lf                show files with line feed
  --crlf              show files with carriage return/line feed
  --lfcr              show files with line feed/carriage return
  --mixed             show files with more than one type of line ending
  -h, --help          show this help message
  -v, --version       show crs's version, date, author and email address
  -V, --verbose       show failing file's names at the end of the output.
  FILE can include shell wildcards *, ? and [^]
If none of --cr, --lf, --crlf, --lfcr or --mixed is chosen, all matching files
will be shown.
Protect wildcard names on Linux with single quotes.  Wildcards work differently
between subdirs and non-subdirs invocations of crs.
Using -s or --subdirs with 'somepath/*.c' will count all files ending
with '.c' in directory somepath and all of its children directories.
Don't use wildcard directory names with -s and --subdirs.
Wildcard directory names used without -s and --subdirs will match directories
to exactly the depth specified by the number of / in the specified path.
So 'crs */*/*.c' will include all files ending in '.c' exactly two directory
levels down.

eq

eq - A Go program to show equivalent values in several bases and ASCII.
Usage: eq [-a|-b|-o|-x] [-c|-n] N
       eq -t
       eq -h|--help|-v|--version
Options:
  -a    N is an ASCII character such as 'A' or 'a', or 'LF' (line feed)
  -b    N is a binary number
  -o    N is an octal number
  -x    N is a hexadecimal number		
  -c    show the one's complement equivalent values
  -n    show the negative (two's complement) equivalent values
  -t    show an ASCII table
  -h, --help
        show this help message
  -v, --version
        show the program's version and date
N is a number or an ASCII character.  N's base defaults to decimal.  N must
be a positive integer and less than 18,446,744,073,709,551,616 (2^64).
N can include commas if numeric, and if quoted it can include spaces; they
are ignored.  Options -b, -o and -x change N's base.  For option -a, upper
& lower case are ignored except for single ASCII characters, such as 'r'
vs. 'R'.  ASCII control code characters can be represented as 'LF',
'CR', 'ACK', and so on.  N is treated as a 64-bit value to show
equivalents for it.

jumblist

jumblist - Unscramble jumbled letters to find the word contained therein.
Usage: jumblist [-a ALTJUMBLIST] LETTERS
       jumblist -h|--help|-v|--version
Options:
  -a ALTJUMBLIST   the name of an alternate word list to use
  -h, --help       show this help message
  -v, --version    show jumblist's version
Argument:
  LETTERS  The jumbled letters to unscramble
jumblist will unscramble jumbled letters to form a word.  Type the scrambled
letters after jumblist on the command line.  The results will go to standard
output. The default word list is internal to jumblist. Option -a may be used to
specify an alternate word list to use. The word list file must contain one word
per line. Case is ignored in the word list; lines with non-alphabetic
characters are also ignored. ALTJUMBLIST can be the name of a gzip- or
bzip2-compressed file or a plain text file. An alternate word list also may be
chosen with environment variable JUMBLISTWORDS. Option -a has priority over the
environment variable.

locc

locc counts lines of C, C++ or Go source code in FILE(s) or standard input.
locc ignores comment-only lines and blank lines to give an accurate count for
lines of non-comment C, C++ or Go source code.  CVS and RCS directories are
skipped.
Usage: locc [-s|--subdirs] [-n|--no-separator] [FILE [...]]
       locc -h|--help|-v|--version
Options:
  -s, --subdirs       include matching files in subdirectories
  -n, --no-separator  don't include thousands separators in counts
  -h, --help          show this help message
  -v, --version       show locc's version, date, author and email address
  FILE can include shell wildcards *, ? and [^]
Protect wildcard names on Linux with single quotes.  Wildcards work differently
between subdirs and non-subdirs invocations of locc.
Using -s or --subdirs with 'somepath\*.c' will count all files ending
with '.c' in directory somepath and all of its children directories.
Don't use wildcard directory names with -s and --subdirs.
Wildcard directory names used without -s and --subdirs will match directories
to exactly the depth specified by the number of / in the specified path.
So 'locc */*/*.c' will include all files ending in '.c' exactly two directory
levels down.

PhoneWords

PhoneWords - Convert a phone number into English words (and residual digits).
Usage: PhoneWords [-m MINLEN] [-a ALTWORDLIST] PHONENUMBER
       PhoneWords -h|--help|-v|--version
Options:
  -m MINLEN        minimum length of words to find (1-12)
  -a ALTWORDLIST   the name of an alternate word list to use
  -h, --help       show this help message
  -v, --version    show PhoneWords's version
Argument:
  PHONENUMBER  The phone number to find words in; non-digits are ignored
PhoneWords will find all English words at least MINLEN letters long in the
phone number, and retain any residual digits in the number. PhoneWords will
send its output to the program named in environment variable PAGER if PAGER is
defined, otherwise the output goes to standard output. The default word list
file is internal to PhoneWords. ALTWORDLIST may specify an alternate word list
to use. The word list file must contain one word per line. Case is ignored in
the word list; lines with non-alphabetic characters are also ignored.
ALTWORDLIST may be a gzip- or bzip2-compressed file or a plain text file. An
alternate word list may be chosen with environment variable PHONEWORDSLIST.
Option -a has priority over the environment variable. MINLEN defaults to 3. No
more than 12 digits are allowed in the phone number.

remcomments

remcomments removes comments from C, C++ and Go source code.
Usage: remcomments [INFILE [OUTFILE]]
       remcomments [-V|-verbose] FILE[ ...] DIRECTORY
       remcomments -i|--in-place [-p|--preserve-time] [-V|-verbose] FILE...
       remcomments -h|--help|-v|--version
Options:
  -h, --help
     show this help message
  -i, --in-place
     process each FILE named on the command line in place
  -p, --preserve-time
     preserve the FILE modification time with option -i
  -v, --version
     show the program's version and date
  -V, --verbose
     display each FILE name as it is processed
Whitespace around comments is not removed.

retab

retab changes tab sizes between its input and output.
Usage: retab [-l] [-f FNUM] [-t TNUM] [INFILE [OUTFILE]]
       retab [-l] [-f FNUM] [-t TNUM] [-V] FILE... DIRECTORY
       retab [-l] [-f FNUM] [-t TNUM] 
                -i|--in-place [-p|--preserve-time] [-V|-verbose] FILE...
       retab -h|--help|-v|--version
Options:
  -h, --help
     show a useful help message
  -i, --in-place
     overwrite each file with its retabbed file
  -l, --leading-only
     stop detabbing a line after a non-blank character occurs in it
  -p, --preserve-time
     preserve the FILE modification time when using option -i
  -f FNUM, --from-tab-size FNUM
     FNUM sets the number of columns between tab stops in input (default is 8)
  -t TNUM, --to-tab-size TNUM
     TNUM sets the number of columns between tab stops in output (default is 4)
  -V, --verbose
     display each FILE name as it is processed
  -v, --version
     show the program's version and date
Options -l and --leading-only stop detabbing a line after the first non-blank
character in that line.

sha3sum

sha3sum - display SHA-3 message digest(s) for FILE(s) or standard input.
Usage: sha3sum [-b BITS|--bits=BITS] [-s|--subdirs] [-u|--uppercase] [FILE ...]
       sha3sum -h|--help|-v|--version
Options:
  -b BITS, --bits BITS set the digest's size in bits; BITS can be one of
       224, 256, 384 or 512.  BITS defaults to 512.  Environment variable
       SHA3SUMLEN can be used to set BITS.  The command line -b/--bits
       options will override the environment variable.
  -u, --uppercase  use upper case A-F in the digest
  -s, --subdirs    include matching files in subdirectories
  -h, --help       show this help message
  -v, --version    show sha3sum's version, date, author and email address
FILE may include wildcards *, ? and [^].
On Linux protect wildcard names with single quotes.  Wildcards work
differently between subdirs and non-subdirs invocations of sha3sum.
Using -s or --subdirs with 'somepath/*.c' will hash all files ending
with '.c' in directory somepath and all of its children directories.
Using wildcard directory names won't work with -s or --subdirs.
Wildcard directory names without -s or --subdirs will hash files that
match directories to exactly the depth specified by the number of / in
the specified path. So 'sha3sum */*/*.c' will hash all files ending in '.c'
exactly two directory levels down.

shake256

shake256 - provide a 512-bit SHAKE256 hash for FILE(s) or standard input.
Usage: shake256 [-s|--subdirs] [FILE [...]]
       shake256 -h|--help|-v|--version
Options:
  -s, --subdirs   include matching files in subdirectories
  -h . --help     show this help message
  -v, --version   show shake256's version, date, author and email address.
FILE may include wildcards *, ? and [^].
Protect wildcard names on Linux with single quotes.  Wildcards work
differently between subdirs and non-subdirs invocations of shake256.
Using -s or --subdirs with 'somepath/*.c' will hash all files ending
with '.c' in directory somepath and all of its children directories.
Using wildcard directory names won't work with -s and --subdirs.
Wildcard directory names without -s or --subdirs will hash files that
match directories to exactly the depth specified by the number of / in
the specified path. So 'shake256 */*/*.c' will hash all files ending in '.c'
exactly two directory levels down.

shuffleBytes

shuffleBytes - shuffle the order of bytes in a file to a new file or in-place.
Usage: shuffleBytes [-b COUNT]] [--seed SEED] [-p] [-V] [INFILE [OUTFILE]]
       shuffleBytes [-b COUNT]] [--seed SEED] [-p] [-V] FILE... DIRECTORY
       shuffleBytes -i [-b COUNT] [--seed SEED] [-s] [-p] [-V] FILE[ ...]
       shuffleBytes -h|-v
Arguments:
  FILE...   - one or more files to convert
  DIRECTORY - convert FILE... into the directory named DIRECTORY
Options:
  INFILE    - the name of a file to read as input
  OUTFILE   - the name of a file to write as output
  -i, --in-place: overwrite each FILE with its own shuffled contents
  -b COUNT, --bit-shuffle COUNT
     Also shuffle the bits within chunks of the file.
     All of the bits within a chunk are shuffled together, with each chunk
     being COUNT bytes long.  If COUNT is 0 then it is set to the length
     of the input.  A good value for COUNT is 8 bytes.  Options -b and
     --bit-shuffle require 8 times COUNT bytes of extra memory.
  --seed SEED:  Set a 64-bit integer seed value for repeatable shuffles.
     If SEED is not set then it has a "random" value based on a
     cryptographic PRN source.  Do not set a seed value of zero.
  -p, --preserve-time:  preserve the file modification date and time
  -s, --subdirs
     also process matching files in subdirectories (requires option -i)
  -V, --verbose:  display each file's name as it is processed
  -h, --help:     show this help message
  -v, --version:  show shuffleBytes's version, date, author & email address


Home

Document last revised: 2022-06-05