matheuss / bawk

`awk`, but better

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bawk

awk, but better

Why?

I got sick of writing awk '{print $1}' all day long 😑

Installation

Install import and then add the following to your .zshrc/.bashrc/etc:

import matheuss/bawk

Example

#!/usr/bin/import
import matheuss/bawk

# get the first "word"
echo a b c | bawk 1

Usage

~ cat > test.txt <<EOF
a b c
EOF~ cat test.txt | bawk 1
a
▲ ~ cat test.txt | bawk 2
b
▲ ~ cat test.txt | bawk 3
c

About

`awk`, but better

License:MIT License


Languages

Language:Shell 100.0%