I am not sure if line #1 has a typo srinivasa prabhu kumar antony
If you only like to remove line containing exact words like srinivas and not srinivasa , use this
Note that the output of sed always goes to <stdout>, which in most cases is the terminal. Try it, watch the output and if you are satisfied redirect it to some file and move this file over the original file:
sed '<commands>' /path/to/input > path/to/output
mv path/to/output /path/to/input
Yes and no. You should not use this feature, even if it is there, which is solely(!) with the GNU-variants of sed .