cprint(1f) - [FILE FILTER] filter prints specified columns (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
cprint [ columns ][ -delimiters delim] |-help|-version
cprint is a filter that prints the specified columns.
columns numbers indicating which columns to print. A negative value denotes the end of a range. A value must be from 1 to 1000. -delimiters input column delimiter character(s) (default: whitespace) Delimiters are changed to spaces on outout. -help display command help and exit -version display command metadata and exit
Sample usage:
$echo d e h l o r w|cprint 3 2 4 4 5 7 5 6 4 1 h e l l o w o r l d$: switch first and second column and skip third column $: and print up to column 1000 $ls -l |cprint 2 1 4 -1000
John S. Urban
Public Domain
cprint (1) | March 11, 2021 |