Using sed, if there is a space character in the file line, I need to print the output with a space character and something after it is deleted. Code example:
sed "s/"something here I think"//g' file
So, let's say the file says this line by line:
Chuck Norris is the man
I just need to print:
Chuck
Several lines also apply:
Chuck Norris is the man So is Arnold
Replaced by:
Chuck So
source share