Common Shell Scripts

Common shell scripts should have brief documentation here for other users.

/usr/local/sripts/catsub (example)

Name: catsub - print subsections of files

Usage: catsub -1 line_1 -2 line2 [file1, file2, ...]

Description: catsub -1 n1 -2 n2 foo is equivalent to head -n n2 | tail -n $((n2 - n1 + 1))

Options:

-1 <line1>

-2 <line2>

Topic revision: r1 - 2015-01-26 - MichaelHynes
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback