Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AWK=awk
- GREP=grep
- if [ $(uname -s) == "SunOS" ]
- then
- AWK=/usr/bin/nawk
- GREP=/usr/xpg4/bin/grep
- fi
- if $GREP -q whatever /some/file
- then
- $AWK -F: '{....}' /some/file
- fi
- PATH=$(getconf PATH):$PATH
- PATH=`getconf PATH`:$PATH
- PATH=~/bin:`getconf PATH`:$PATH
- set path = ( ~/bin `getconf PATH` $path)
- mkdir -p ~/bin
- cd ~/bin
- cat > awk <<%
- #!/bin/sh
- PATH=`getconf PATH`:$PATH awk "$@"
- %
- ln -s awk nawk
- ln -s awk gawk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement