[Sussex] workaround script

Thomas Adam thomas at edulinux.homeunix.org
Sun Oct 3 21:54:07 UTC 2004


On Sun, Oct 03, 2004 at 10:51:06PM +0100, Thomas Adam wrote:

Woops. Minor corrections:

> --------
> #!/bin/sh
> for i in "$@"; do
>   a=$(basename $i)
>   [ -f "/tmp/$a" ] && rm -f /tmp/$a
>   cp "$i" /tmp/$a
>   joe /tmp/$a
>   diff -u /tmp/$a $a > /tmp/changes

diff -u /tmp/$a $i > /tmp/changes

>   mail -s "joe: $PWD/$x changes" $USER </tmp/changes

mail -s "joe: $PWD/$i changes" $USER </tmp/changes

>   rm /tmp/$a
> done
> ----------

-- Thomas Adam

-- 
$ source ~/.bash_history





More information about the Sussex mailing list