sed -i "s/Świerkowska/{\\\\'S}wierkowska/" bibliography.bib sed -Ezi "s/\s(abstract|note|urldate|url|keywords|file) = \{[^}]*(\{[^}]*\}[^}]*)*\},?\n//g" bibliography.bib