CL Tools
|
CL Tools is a useful set of utilities that will enable you to perform various actions on your files in order to better manage them. The available applications are: cut, grep, sort, tail, uniq. Basic version of unix system tools written in Java.
1. Cut
Usage: java com.nls.cltools.Cut [OPTION]... [FILE]
Print selected parts of lines from each FILE to standard output. With no FILE read standard input.
-d DELIM use DELIM instead of TAB for field delimiter;
-f LIST output only these fields;
-? display this help and exit;
Each LIST is made up of one range, or many ranges separated by commas. Each range is one of:
N N'th field, counted from 1
N-M from N'th to M'th (included) field
2. Grep
Usage: java com.nls.cltools.Grep PATTERN [FILE]
Search for PATTERN in each FILE or standard input. PATTERN can be regular expression recognized by the class java.util.regexp.Pattern.
3. Sort
Usage: java com.nls.cltools.Sort [FILE]
Write sorted contents of FILE or standard input to standard output.
4. Tail
Usage: java com.nls.cltools.Tail [OPTION]... [FILE]
Print the last 10 lines of each FILE to standard output. With no FILE read standard input.
-f output appended data as the file grows;
-<n> output the last N lines, instead of the last 10;
-? display this help and exit;
Options can put strung together such as tail -20f
5. Uniq
Usage: java com.nls.cltools.Uniq [FILE]
Discard all but one of successive identical lines from FILE or standard input, writing to standard output.
Requirements:
* Java
The license of this software is Freeware, you can free download and free use this file management software.