On Mon, Jul 04, 2005 at 09:00:18AM +0100, unixadmin99 wrote:
> Oops!
> Accidently emptied half the contents of src.tar.gz into /usr/bin while
> undergoing an install under the intoxication of sleep.
> What's the most efficient way of rectifying this?

src.tar.gz is mostly directories and /usr/bin shouldn't have any.

cd /usr/bin
for d in *; do
   if [ -d "$d" ]; then
      echo $d
   fi
done
echo Makefile

Should list what needs deleting.

Reply via email to