Hi i have a question i have searched everywhere but i cant find it.
I want to use the sed command to remove a line containing a certain string. In the text file there are more lines with the same string . The sed command has to delete only the first string and not the rest. How can i do that can somebody tell me? im gonna use it in a shell script wich will be activated multiple times till it runs out of the same string
For example i have the following lines:
aaa aaa aaa bbb ccc
and i only want to remove 1 line with aaa