#!/bin/bash # # Note that the test command will get errors if the stupid new version # is there or if they completely remove the programs, so I'll get a # proper version copied back in either case. # greptest=`/usr/bin/fgrep booger /dev/null 2>&1` if [ -n "$greptest" ] then rm -f /usr/bin/fgrep cp /zooty/grep/fgrep /usr/bin/fgrep chmod 755 /usr/bin/fgrep fi greptest=`/usr/bin/egrep booger /dev/null 2>&1` if [ -n "$greptest" ] then rm -f /usr/bin/egrep cp /zooty/grep/egrep /usr/bin/egrep chmod 755 /usr/bin/egrep fi