BSD Ports

textproc/choose 1.3.4 NetBSD

Human-friendly and fast alternative to cut and (sometimes) awk

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
gnu-gpl-v3
Categories
textproc
Package size
563.7 KiB, 1961.7 KiB installed

Description

The AWK programming language is designed for text processing and is extremely capable in this endeavor. However, the awk command is not ideal for rapid shell use, with its requisite quoting of a line wrapped in curly braces, even for the simplest of programs.

Likewise, cut is far from ideal for rapid shell use, because of its confusing syntax. Field separators and ranges are just plain difficult to get right on the first try.

It is for these reasons that I present to you choose. It is not meant to be a drop-in or complete replacement for either of the aforementioned tools, but rather a simple and intuitive tool to reach for when the basics of awk or cut will do, but the overhead of getting them to behave should not be necessary.

In the other systems

SystemPortVersion
NetBSDtextproc/choose1.3.4
FreeBSDtextproc/choose1.3.7_12
DragonFlytextproc/choose1.3.6_4

Install

Binary package:

pkgin install choose

From pkgsrc:

cd /usr/pkgsrc/textproc/choose && make install clean

Dependencies

No port depends on this one.