View Single Post
Old 08-13-2015, 12:26 PM   #4
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,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
It did say something about that in the calibre description but it wasn't clear if that was before or after the regex.

for the renaming -- that would be easier than some of those Windows file mangling tools. (I hate having to tell Windows users to hunt one of those down and do something I don't know with it.)


But you don't need to exec bash unless you specifically want to override your current shell. Just use:
Code:
find . -name '*_*' -exec mv "$0" "${0/_/--}"

Last edited by eschwartz; 08-13-2015 at 12:29 PM.
eschwartz is offline   Reply With Quote