Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

delete matched pattern in a file using vi editor and sed command

Hi,

I like to delete matched pattern in a file using vi editor and sed command

i tried as below not working

$ sed 'hello' aaaa.txt :% aaaa.sh


please advise
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

Use the "-i" flag and/or the "g" option as described in the mentioned thread, if desired.

which thread?
You can't use vi" and "sed" at the same time.
why we cannot use together?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial