Before this question is marked as a duplicate let me explain. I'm trying to remove the following string occurrences from a file:
* Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
i've looked at similar questions and they suggest the usage of the sed command:
sed -i -e 's/removedString//g' filename
The problem is that when I execute the above command with the string:
sed -i -e 's/ * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)//' filename
I get the following error:
sed: -and expression # 1, character 24: the numeric numeric for the `s' command can not be zero (s /// 0)
I'm assuming that the s/
only applies to strings and not numbers, is there a way to correctly remove this painful string?