18 Dec
2005
18 Dec
'05
7:05 p.m.
On 12/18/05, David Arnold
All,
How would I use sed to erase %output=pdf from any file ending with .tex in the current directory and any subdirectories below it?
Delete the line containing %output=pdf: $ find . -name "*.tex" | xargs sed -i '/%output=pdf/d' Remove only text "output=pdf": $ find . -name "*.tex" | xargs sed -i 's/%output=pdf/%/' Try it with a test file before run over all your TeX files :) HTH, -- http://vnoss.org Vietnamese Open Source Software Community