Linux Commands Examples

A great documentation place for Linux commands

colrm

remove columns from a file


see also : awk - column - cut - paste

Synopsis

colrm [start [stop]]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

The colrm utility removes selected columns from the lines of a file. A column is defined as a single character in a line. Input is read from the standard input. Output is written to the standard output.

If only the start column is specified, columns numbered less than the start column will be written. If both start and stop columns are specified, columns numbered less than the start column or greater than the stop column will be written. Column numbering starts with one, not zero.

Tab characters increment the column count to the next multiple of eight. Backspace characters decrement the column count by one.

environment

The LANG, LC_ALL and LC_CTYPE environment variables affect the execution of colrm as described in environ(7).

exit status

The colrm utility exits 0 on success, and >0 if an error occurs.


history

The colrm command appeared in 3.0BSD.

BSD August 4, 2004 BSD


see also

awk , column , cut , paste

How can this site be more helpful to YOU ?


give  feedback