shell - deleting only pattern from the lines of a file -


i want delete pattern file using shell script. example, given:

blah blah (100%) blah blah  

i want delete occurrences of pattern (100%), if appears more once on line, , on lines in file appear.

you can use sed

echo "blah (100%) blah (100%)" | sed 's/(100%)//g' blah  blah  

Comments

Popular posts from this blog

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -