#!/bin/bashs="Line 1# param = 0param = 1# param = 2text...." sed -E '0,/^ *#? *param *=/s/^ *#? *param *=.*/param = 1/' <<< "$s"
Standard input is empty
Line 1 param = 1 param = 1 # param = 2 text....
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!