View Single Post
Old 07-23-2014, 12:08 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Just curious -- is there a reason you use find and while read line, instead of "for file in *.mobi"

And instead of

Code:
fullfilename=${0##*/}
filename="${fullfilename%.*}"
you can use

Code:
filename="$(basename $0)"
And
Code:
test -e "$convertpath" || mkdir "$convertpath"
could be changed to
Code:
mkdir -p "$convertpath"
eschwartz is offline   Reply With Quote