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.
OS | Architecture | Version |
---|---|---|
NetBSD 10.0 | aarch64 | choose-1.3.4.tgz |
NetBSD 10.0 | aarch64 | choose-1.3.4.tgz |
NetBSD 10.0 | earmv7hf | choose-1.3.4.tgz |
NetBSD 10.0 | earmv7hf | choose-1.3.4.tgz |
NetBSD 10.0 | earmv7hf | choose-1.3.4.tgz |
NetBSD 10.0 | i386 | choose-1.3.4.tgz |
NetBSD 10.0 | i386 | choose-1.3.4.tgz |
NetBSD 10.0 | powerpc | choose-1.3.4.tgz |
NetBSD 10.0 | powerpc | choose-1.3.4.tgz |
NetBSD 10.0 | powerpc | choose-1.3.4.tgz |
NetBSD 10.0 | sparc64 | choose-1.3.4.tgz |
NetBSD 10.0 | sparc64 | choose-1.3.4.tgz |
NetBSD 10.0 | x86_64 | choose-1.3.4.tgz |
NetBSD 10.0 | x86_64 | choose-1.3.4.tgz |
NetBSD 9.0 | earmv7hf | choose-1.3.4.tgz |
NetBSD 9.0 | earmv7hf | choose-1.3.4.tgz |
NetBSD 9.0 | i386 | choose-1.3.4.tgz |
NetBSD 9.0 | i386 | choose-1.3.4.tgz |
NetBSD 9.0 | powerpc | choose-1.3.4.tgz |
NetBSD 9.0 | powerpc | choose-1.3.4.tgz |
NetBSD 9.0 | powerpc | choose-1.3.4.tgz |
NetBSD 9.0 | x86_64 | choose-1.3.4.tgz |
NetBSD 9.0 | x86_64 | choose-1.3.4.tgz |
NetBSD 9.3 | x86_64 | choose-1.3.4.tgz |
Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.
The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.
Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.
Problem reports, updates or suggestions for this package should be reported with send-pr.