Hallo,
ich habe mir folgendes Script gebastelt, welches in dem Verzeichnis aufgerufen wird, in dem die Aufnahmen liegen:
Bash
#!/bin/sh
if [ "$1" = "-h" -o "$1" = "-H" ]; then
cat << EOF
Usage:
${0} -a führt markad bei allen Aufnahmen im aktuellen Verzeichnis aus, auch bei vorhandener marks
EOF
exit 0
fi
if ! [ -z "$1" ]; then
if [ "$1" = "-a" ]; then
# find -maxdepth 2 -name *.rec -exec echo "Alle: " {} \;
find -maxdepth 2 -name *.rec -exec markad -I -v --astopoffs=10 --autologo=2 - {} \;
fi
else
for line in $(find -maxdepth 2 -name *.rec); do
if ! [ -f ${line}/marks ]; then
# echo "ohne marks: " ${line}
markad -I -v --astopoffs=10 --autologo=2 - ${line}
fi
done
fi
Alles anzeigen