I tried using this answers stack overflow #1 and this site regexp, but I can't delete line with dot inside, using \
before .
doesn't help. The line I'm trying to delete is:
export PATH="$HOME/.rbenv/bin:$PATH"
I'm try delete this line by writing
sed -i /'export PATH="$HOME/.rbenv/bin:$PATH"'/{d} .testing
Effect? sed: -e expression #1, char 21: unknown command: '.'
When trying another way, escaping dot
sed -i /'export PATH="$HOME/\.rbenv/bin:$PATH"'/{d} .testing
Effect? sed: -e expression #1, char 21: unknown command: '\'
I have no clue how to work this around.