[opensuse] md5sum question
Hello: I have an md5sum (sum.md5) file with files names containing spaces. When I run "md5sum -c sum.md5" I get error messages because of these file names. How can I have md5sum accept file names with spaces? TIA, IG ___________________________ VÁSÁROLNA? SEGÍTÜNK! Igényeljen hitelkártyát online és élvezze Ön is a vásárlás szabadságát! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Istvan Gabor wrote:
Hello:
I have an md5sum (sum.md5) file with files names containing spaces. When I run "md5sum -c sum.md5" I get error messages because of these file names. How can I have md5sum accept file names with spaces?
Have you tried putting them in qoutes? "file name with blanks" /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I have an md5sum (sum.md5) file with files names containing spaces. When I run "md5sum -c sum.md5" I get error messages because of these file names. How can I have md5sum accept file names with spaces?
Have you tried putting them in qoutes? "file name with blanks"
Thanks, but it is not possible. Maybe I wasn't clear. I have the file names with the corresponding md5sums listed in a text file, one file per line. This text file is the input for md5sum if -c option is set: md5sum -c textfile.md5. This means that md5sum takes the file names from this file and verifies if the calculated md5sums are the same as the ones given in the textfile. The file is similar to this one: ed6a5b3feb668866df812b1c2aed9d7f openSUSE-11.0-DVD- i386.iso 113c3ef0509db0e00310e19085f3a197 openSUSE-11.0-DVD- ppc.iso 512c8346b0f8eb35f28c4eb96454d391 openSUSE-11.0-DVD- x86_64.iso The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this? TIA, IG ___________________________ Papírképek akár ingyen! Digitális fényképezőgépek már 5000 Ft ajándék fotókidolgozással a FotoMarket Online Fotóáruházban! http://www.fotomarket.hu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-07-08 at 13:22 +0200, Istvan Gabor wrote:
Thanks, but it is not possible. Maybe I wasn't clear. I have the file names with the corresponding md5sums listed in a text file, one file per line. This text file is the input for md5sum if -c option is set: md5sum -c textfile.md5. This means that md5sum takes the file names from this file and verifies if the calculated md5sums are the same as the ones given in the textfile. The file is similar to this one:
ed6a5b3feb668866df812b1c2aed9d7f openSUSE-11.0-DVD-i386.iso 113c3ef0509db0e00310e19085f3a197 openSUSE-11.0-DVD-ppc.iso 512c8346b0f8eb35f28c4eb96454d391 openSUSE-11.0-DVD-x86_64.iso
The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this?
Report a bug in bugzilla or upstream, and wait a few ages :-p Simply calculate the checksums and do the checking manually. I don't know if you change the names both outside and inside if it will work. Try first scaping the spaces. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIc1K6tTMYHG2NR9URAj/IAKCGb4XoXZCugACpAncgi+eWzb1vsACgkbqW 4ViGQKSNknEn9wuRm9YfwNA= =81vz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 08 July 2008 14:42:41 Carlos E. R. wrote:
The Tuesday 2008-07-08 at 13:22 +0200, Istvan Gabor wrote:
Thanks, but it is not possible. Maybe I wasn't clear. I have the file names with the corresponding md5sums listed in a text file, one file per line. This text file is the input for md5sum if -c option is set: md5sum -c textfile.md5. This means that md5sum takes the file names from this file and verifies if the calculated md5sums are the same as the ones given in the textfile. The file is similar to this one:
ed6a5b3feb668866df812b1c2aed9d7f openSUSE-11.0-DVD-i386.iso 113c3ef0509db0e00310e19085f3a197 openSUSE-11.0-DVD-ppc.iso 512c8346b0f8eb35f28c4eb96454d391 openSUSE-11.0-DVD-x86_64.iso
The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this?
Report a bug in bugzilla or upstream, and wait a few ages :-p
Simply calculate the checksums and do the checking manually. I don't know if you change the names both outside and inside if it will work. Try first scaping the spaces.
-- Cheers, Carlos E. R.
You could also try to change your file to have the file names in quotes. This could be done either automatically (with sed) or manually. -- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Istvan Gabor wrote:
The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this?
Hmm, I've just tried reproducing your problem, but I cannot. my md5sum has no problem with blanks in the file name: I created a file named "/tmp/klop 99" (a single space before 99). I ran "md5sum /tmp/klop\ 99 >/sums" Check the sums: md5sum -c sums /tmp/klop 99: OK my md5sum is from coreutils 6.4. /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-07-08 at 14:16 +0200, Per Jessen wrote:
The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this?
Hmm, I've just tried reproducing your problem, but I cannot. my md5sum has no problem with blanks in the file name:
Me neither, I did your test: md5sum *\ * > MD5SUM md5sum --status -c MD5SUM and my files have all sort of spaces and strange chars. Maybe his MD5SUM file is not the direct output of the program.
my md5sum is from coreutils 6.4.
cer@nimrodel:~> rpm -q -f `which md5sum` coreutils-6.9-43 (opensuse 10.3) nimrodel:~ # md5sum esp\ acio > MD5SUM nimrodel:~ # md5sum -c MD5SUM esp acio: OK nimrodel:~ # rpm -q -f `which md5sum` coreutils-6.11-9 (chrooted 11.0) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIc2EEtTMYHG2NR9URAk/NAJ9Y8XrLPH37KYXwFzXuX7WP+IQ93wCggwTO 8SM/OqnXAqTnScVV8CwLN7c= =NxHl -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this?
Hmm, I've just tried reproducing your problem, but I cannot. my md5sum has no problem with blanks in the file name:
Me neither, I did your test:
md5sum *\ * > MD5SUM md5sum --status -c MD5SUM
and my files have all sort of spaces and strange chars. Maybe his MD5SUM file is not the direct output of the program.
my md5sum is from coreutils 6.4.
cer@nimrodel:~> rpm -q -f `which md5sum` coreutils-6.9-43
(opensuse 10.3)
nimrodel:~ # md5sum esp\ acio > MD5SUM nimrodel:~ # md5sum -c MD5SUM esp acio: OK nimrodel:~ # rpm -q -f `which md5sum` coreutils-6.11-9
(chrooted 11.0)
Thank you all for your answers. I will check again the error message of the md5sum command if I interpreted it correctly and will get back. Thank you again, IG ___________________________ Papírképek akár ingyen! Digitális fényképezőgépek már 5000 Ft ajándék fotókidolgozással a FotoMarket Online Fotóáruházban! http://www.fotomarket.hu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 08 July 2008 05:43, Carlos E. R. wrote:
The Tuesday 2008-07-08 at 14:16 +0200, Per Jessen wrote:
The difference is that in my case the file names listed contain spaces, and md5sum chokes on them. How can I solve this?
Hmm, I've just tried reproducing your problem, but I cannot. my md5sum has no problem with blanks in the file name:
Me neither, I did your test:
md5sum *\ * > MD5SUM md5sum --status -c MD5SUM
and my files have all sort of spaces and strange chars. Maybe his MD5SUM file is not the direct output of the program.
Perhaps it's a DOS-format text file? Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2008-07-08 at 08:03 -0700, Randall R Schulz wrote:
and my files have all sort of spaces and strange chars. Maybe his MD5SUM file is not the direct output of the program.
Perhaps it's a DOS-format text file?
cer@nimrodel:~> unix2dos MD5SUM unix2dos: converting file MD5SUM to DOS format ... cer@nimrodel:~> file MD5SUM MD5SUM: ASCII English text, with CRLF line terminators cer@nimrodel:~> md5sum --status -c MD5SUM : No such file or directorystructura.odg : No such file or directoryst-2.pdf ... You are right, it fails. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIc7bBtTMYHG2NR9URAlj5AJ9yxIVfsXqv+9FX3O/7wygUpMyPQwCbB3gc rDwXlGI196jTndXVLDI0QFA= =6azT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Perhaps it's a DOS-format text file?
Hello: Indeed it was a DOS-format text file. Furthermore it probably was created on windows and all the folder separators were backslashes instead of slashes. I simply overlooked this. After converting the file to unix format and replacing all the backslashes md5sum ran successfully. Thank you all again for your help. IG VÁSÁROLNA? SEGÍTÜNK! Igényeljen hitelkártyát online és élvezze Ön is a vásárlás szabadságát! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Bogdan Cristea
-
Carlos E. R.
-
Istvan Gabor
-
Per Jessen
-
Randall R Schulz