#!/bin/sh dirs="/home /mnt /media /etc /usr" echo "$(date '+%a %m-%d-%Y %I:%M:%S %p') Creating findcache for the following..." echo "$dirs" notify-send "Now creating find cache..." "$dirs" find ${dirs} -type d 2>/dev/null | sort > /tmp/dirs && mv /tmp/dirs "$HOME"/.cache/fcd/dirs & find ${dirs} -type f 2>/dev/null | sort > /tmp/files && mv /tmp/files "$HOME"/.cache/fcd/files &