From 4bfdd95794da95388ff6289464a8180867dd1b78 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 29 Dec 2012 14:50:11 -0600 Subject: [PATCH] .bashrc: Use GNU awk on Solaris --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 6ede141..b9dc75f 100644 --- a/.bashrc +++ b/.bashrc @@ -244,10 +244,11 @@ alias du1='du -h --max-depth=1' alias fn='find . -name' alias hi='history | tail -20' -# For Solaris, use GNU versions of grep and sed +# For Solaris, use GNU versions of core utils if [ "$UNAME" = SunOS ]; then test -x /usr/gnu/bin/grep && alias grep="/usr/gnu/bin/grep" test -x /usr/gnu/bin/sed && alias sed="/usr/gnu/bin/sed" + test -x /usr/gnu/bin/awk && alias awk="/usr/gnu/bin/awk" fi # Alias csh-style "rebash" to bash equivalent -- 2.47.1