Cut text columns

Split each line by a delimiter, then keep or remove the selected columns.

Input example

abc|123|xyz

Output example

abc

Delimiter: | · First column: 1 · Last column: 1