Linux / UNIX: Change File Permissions Recursively ( conditional )

Posted on in Categories , , , , , , , , last updated July 9, 2015

How do I recursively change files with 777 permissions to 755 in /home/user/demo directory? I have a number of files in this directory and I need to change permission from 0777 to only if that file has 777 permissions. Is there an easy way out to achieve this?