1 2 3 4 5 6
#!/bin/bash sed -i "$1" \ -e '/^M190 S90 ;.*$/d' \ -e '/^M104 S220 ;.*$/d' \ -e '/^M109 S220 ;.*$/d' \