1
CLI在内存中执行Regex,然后输入Command
我想用一个regular expression修改文件,然后将其提供给pandoc中cli。 像这样的东西: perl -pe 's/_(.*)_/\\underline{$1}/g' source.md > pandoc -o source.pdf 因此,我正在接受任何包围_并用Latex命令替换它,\underline{found text}然后将结果提供给pandoc命令。 我以为我看到其他人做过类似的事但却找不到。 更新: OS: Lubuntu 13.04