Renaming Files on Hoary
Pablo Wolter
pwolter at gmail.com
Tue Jun 14 19:53:01 UTC 2005
Ed Fletcher wrote:
> Hi All:
>
> My camera saves all picture files as .JPG for some reason. I usually do
> a bulk rename in each directory to get the extension into lowercase, ie:
> .jpg. However on some pictures that I copied via scp from my server at
> home, I get this error:
>
> $ rename P1140111.JPG P1140111.jpg
> Bareword "P1140111" not allowed while "strict subs" in use at (eval 1)
> line 1.
> Bareword "JPG" not allowed while "strict subs" in use at (eval 1) line 1.
> $
>
can you send us the relevant perl script part to help you?
> The scp program wrote them as 644 so I've already done a chmod 744 to
> all files in the directory.
>
> $ ls -l P1140111.JPG
> -rwxr--r-- 1 user user 977495 2005-06-12 10:16 P1140111.JPG
> $
>
> I know that I've done this before but I'm not sure if the rename command
> (which is a perl script) has changed with the upgrade to Hoary or if has
> something to do with scp.
>
And if you can, how you create your ssh keys and how you're copying the
files. With the description you provide I can't help you....
> Anyone know how to get around this?
>
> Thanks,
> Ed
> --
> Ed Fletcher
> ed at fletcher.ca
>
> When one door of happiness closes, another opens;
> but often we look so long at the closed door that
> we do not see the one which has opened for us.
> - Helen Keller
More information about the ubuntu-users
mailing list