Displaying 1 result from an estimated 1 matches for "new_md5".
Did you mean:
new_idx
2003 Jun 27
0
dealing with renamed files
...option
'
tmpfile=md5_rename_tmp
find -type f -print0 | xargs -0 md5sum > "$tmpfile"
for file in "$@" ; do
old_IFS="$IFS"
IFS='
'
for new_line in `cat "$file"` ; do
IFS="$old_IFS"
new_md5=`echo "$new_line" | cut -d' ' -f1`
new_pathname=`echo "$new_line" | cut -d' ' -f3-`
old_pathname=`grep -m1 "$new_md5" "$tmpfile" | \
cut -d' ' -f3-`
if [ "$ol...