Displaying 1 result from an estimated 1 matches for "old_pathname".
2003 Jun 27
0
dealing with renamed files
...quot;
        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 [ "$old_pathname" ] ; then
                        mkdir -p `dirname "$new_pathname"`
                        mv "$old_pathname" "$new_pathna...