use a file to chmod

Hi!

I need help becouse I've server to backup and I've a lot of files with 700 permission and I need to change the mode to 755 before copy

So the point is. With find . -perm 700 -exec echo {} > textfile.txt \;
I got a text file with 3156 line which one represents a file with perm 700
the help that I need is to use which line to chmod. Something like use chmod 755 and then I need help to do the cat text lines ?????????

Please help

Trying to parse your question...

Hmmm...So you already have a list of files that you need to change right (list of files with 700 as the permission)?

And you want these files to be chmod'ed to 755?

Try this:

cat <list_of_700_files> | while read x; do
chmod 755 $x
done

Hope I understand you correctly

Why don't you use -exec chmod?

Thanks a lot. I didn't help anything but because of something else. You're right with the script