Find all files with the extension .txt that were modified within the last day in the /dev/ directory and change their permissions to 644.
find /dev/ -mtime -1 -type f -name '*.txt' -exec chmod 644 {} \;