我首选的bibtex风格文件引用作者的姓名缩写.但是,有各种文本应该以不同的方式引用(例如,Elements Geometrie Algebrique应该始终被引用为[EGA]).我知道如何在bibtex输出的.bbl文件中修改它,但是我必须为每个文件执行此操作.有没有办法从我的.bib文件中执行此操作?
我有一个文件,我正在逐行阅读.有些线路上有美元符号,我想用sed删除它们.所以,例如,
echo $line
Run Code Online (Sandbox Code Playgroud)
回报
{On the image of {$p$}-adic regulators},
Run Code Online (Sandbox Code Playgroud)
另一方面,
echo $line | sed 's/\$//g'
Run Code Online (Sandbox Code Playgroud)
正确回归
{On the image of {p}-adic regulators},
Run Code Online (Sandbox Code Playgroud)
但
title=`echo $line | sed 's/\$//g'`; echo $title
Run Code Online (Sandbox Code Playgroud)
回报
{On the image of {$p$}-adic regulators},
Run Code Online (Sandbox Code Playgroud)