I have a simple query related to selection and replacing text in linux. I am using
sed command. I have the following text:
hello world, I am just simple text for display.
Now I want to print to "hello world" only I can do it using following command in linux.
echo "hello world, I am just simple text for display." | sed 's/, I am.*//g'
Now I want totally inverse of this function, how can I remove "hello world" by using a simple command just like
, I am just simple text for display.
I would prefer if linux commands (
sed etc) are used.