\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
- [SLUG] Script to fix filenames Nick Croft
- Re: [SLUG] Script to fix filenames chesty
- RE: [SLUG] Script to fix filenames David Zverina
- Re: [SLUG] Script to fix filenames Angus Lees
- Re: [SLUG] Script to fix filenames Peter Chubb
