zsh-goto/_awk

8 lines
175 B
Bash
Executable file

#!/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