#!/bin/bash PROGDIR=$(dirname $(readlink -f $0)) cd "$PROGDIR" for x in /home/media/music /home/common/music /home/stil/r/anubis/common/music /home/stil/r/anubis/common/cls/Boa_n_SEL; do ./scanscript.sh "$x" | ./cos-dbupdate fuck done