I have a file , the content as below ,
#vi file
I would like to remove the string "bbb ccc" , I use the below command
Code:
sed -i 's/bbb ccc//g' file
the output file will be changed to as below
it seems works but there are space between "aaa" and "ddd" , what I need is cut the character but remove the space , the output should be as below , would advise what can I do ? thanks