#!/bin/sh BOOKS=`find -mindepth 1 -type d -name \*` for i in $BOOKS; do echo converting $i convert $i/* $i.pdf done