How to search and insert a carriage return character at the end of the files in Linux/Unix

If you need to search for all the matching files and insert a carriage return character (or any other character) to the end of the file, you can use the command below.