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
Post a Comment