Since you don't have any comments and the commit descriptions don't tell me anything I can't really tell what this script is supposed to do; however, it looks to me that you could have gotten the same result with a simple `sed` command.