public final class Cut extends Object
NAME
cut - remove sections from each line of the input
SYNOPSIS
cut <args> | |
cut [-cf] <range> | |
cut [-cf] <indexes> | |
cut [-cf] <delimiter> <range> | |
cut [-cf] <delimiter> <indexes> | |
cut [-cf] <delimiter> <outputDelimiter> <range> | |
cut [-cf] <delimiter> <outputDelimiter> <indexes> |
See Cut.Interface
for the corresponding command signature methods.
DESCRIPTION
Print selected parts of lines from the input to the output.
Options
The following options are supported:
-c | --chars | The list specifies character positions. | |||
-f | --fields | The list specifies fields, separated in the input by the field delimiter character (see the -d option.) Output fields are separated by a single occurrence of the field delimiter character. |
OPERANDS
The following operands are supported:
<delimiter> | : | String | use as the output delimiter the default is to use the input delimiter | ||
<outputDelimiter> | : | char | use as the output delimiter the default is to use the input delimiter | ||
<indexes> | : | int... | select these chars/field based on the given indexes. Indexes are 1 based. i.e. the first character/field on a line has an index of 1. | ||
<range> | : | org.unix4j.util.Range | select only these fields | ||
<args> | : | String... | String arguments defining the options and operands for the command. Options can be specified by acronym (with a leading dash "-") or by long name (with two leading dashes "--"). Operands other than the default "--range" operand have to be prefixed with the operand name (e.g. "--indexes" for subsequent index operand values). | ||
<options> | : | CutOptions | options for the cut command |
Modifier and Type | Class and Description |
---|---|
static interface |
Cut.Interface<R>
Interface defining all method signatures for the "cut" command.
|
Modifier and Type | Field and Description |
---|---|
static CutFactory |
Factory
Singleton
factory instance for the "cut" command. |
static String |
NAME
The "cut" command name.
|
static CutOptionSets |
Options
|
public static final String NAME
public static final CutOptionSets Options
public static final CutFactory Factory
factory
instance for the "cut" command.Copyright © 2024. All rights reserved.