awk
, but better
I got sick of writing awk '{print $1}'
all day long 😑
Install import
and then add the following to your .zshrc
/.bashrc
/etc:
import matheuss/bawk
#!/usr/bin/import
import matheuss/bawk
# get the first "word"
echo a b c | bawk 1
▲ ~ 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