#!/bin/bash echo echo -n updating cache... updatedb && echo done echo tmp=`locate \.new | grep new$ | grep -v sbopkg | grep -v slackbuilds` for f in $tmp; do if [[ -f ${f%\.new}.dist ]]; then difftmp=`diff -bu ${f%\.new}.dist $f` # identical [[ -z $difftmp ]] \ && echo mv -f $f ${f%\.new}.dist \ || echo "$difftmp" else # no .dist echo mv -f $f ${f%\.new} fi done; unset f unset tmp