Renaming Files on Hoary
Ed Fletcher
ed at fletcher.ca
Tue Jun 14 18:57:26 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
$
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.
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCryiWlTbGAQhc1A8RApoMAKC3wkiPasdd/M7N1NWahJcITCx6yQCfTQ3S
uUi0/8dpccEhwQU+utI2kaU=
=lumX
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list