Skip to content

Commit

Permalink
fix bug of match part of src string.
Browse files Browse the repository at this point in the history
  • Loading branch information
soarpenguin committed Feb 19, 2014
1 parent 1a2a0dc commit b5c6345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bashrc/deleteMatchLine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ do
continue
fi

sed -e "/${line}/d" ${sourcefile} >${sourcefile}.tmp
sed -e "/\<${line}\>/d" ${sourcefile} >${sourcefile}.tmp
mv ${sourcefile}.tmp ${sourcefile}
done

Expand Down

0 comments on commit b5c6345

Please sign in to comment.