I went through numerous links like - Identifying and removing null characters in UNIX and how replace null characters in UNIX?, but I am looking to automate the process of r