[X-Unix] Renaming files with spaces

Craig A. Finseth fin at finseth.com
Fri May 22 12:04:44 PDT 2009


Try:

   for f in *.PDF; do
	   base=`basename $f .PDF`
	   mv "$f" "$base.pdf"
   done

Craig


More information about the X-Unix mailing list