Shell script to do the conversion