[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
Gemma Peter wrote:
> I got all the photos off the digital camera and saved them on my hard
> drive (thanks to all those who helped at the Plymouth meeting). Now
> gphoto has saved them to a directory with names in the format "-XXX.jpg"
> where XXX is a three digit sequential number. How can I get rid of the
> "-" at the beginning without having to rename each file individually?
for f in -*; do mv -- $f ${f#?}; done
Steve
--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.