I have a simple query related to selection and replacing text in linux. For explaning question I am using sed command. I have 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 simple command just like sed.
Output required. , I am just simple text for display. It will very fruitful if linux commands (sed etc) are used. Thanks