В 23:28 +0100 на 15.01.2012 (нд), teodorescup[@nospam] написа:
> And, eventually, I found the string:
> find /tmp/some_dir/ -type d | while read dir; do md5sum -c
> ${dir}/md5sum.txt
> ; done
>
> Unfortunately, for some reason (probably the folder naming), I can't apply it
>
> to for the task I need, yet.
So you want to check the files in all sub directories against a md5sum
file in every sub directory?
The modification you've come up with seems to be working for me.
I don't know are you familiar with everything in my example and your
modification, so excuse me if you are.
The "/tmp/some_dir" is the top directory for the search. The "-type d"
searches for directories only. On every cycle of the while loop, "dir"
is the sub directory. If any directory has a white space symbol you
will have to put each ${dir} in quotes - "${dir}".
signature.asc
Description: This is a digitally signed message part
