\begin{Nick Croft}
> I keep getting batches of jpegs without the .jpeg extension (or any other
> permutation).
> 
> What area of scripting should I look to in order to add the extension. Is
> sed able to work on filenames in a directory as it doeson words in a file?

for f in *; do
  test -z "${f##*.*}" || mv $f $f.jpeg
done

or something..

-- 
 - Gus


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to