zsh-goto/_awk

9 lines
175 B
Text
Raw Normal View History

2022-08-11 06:11:04 +00:00
#!/usr/bin/env zsh
if command -v gawk &>/dev/null; then
gawk "${@}"
elif command -v awk &>/dev/null; then
awk "${@}"
else
echo "Unable to find an awk!" >&2; return 1
fi