npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

nawk

0.2.0 • Public • Published

NAWK

Usage

cat some/file.txt | nawk [ ...]

Example

cat some/file.txt | nawk 0 -1

Description

Nawk prints the corresponding tokens of each line in the file

  • negative numbers are relative to the end of the line
  • 0 is the first element in the line
  • -1 is the last element in the line
  • -2 is the second to last

cat some/file.txt | nawk -1 0 the above line prints the last and first element in the line.

Keywords

install

npm i nawk

Downloadsweekly downloads

2

version

0.2.0

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability