How to solve the following problem?Inputhai this is #test #this is commentQuestion:       How to remove only the comment in shell script.        Expected output:  hai this is #test
Strip #xxx comments except when they occur inside quotes in sed
sed