[NTG-context] sed question

2005-12-18 Thread 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? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] sed question

2005-12-18 Thread Taco Hoekwater
David Arnold wrote: 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? I don't know about sed, but here is a find/perl solution that would work on linux: find . -name \*.tex -exec perl -npi -e

Re: [NTG-context] sed question

2005-12-18 Thread VnPenguin
On 12/18/05, David Arnold [EMAIL PROTECTED] wrote: 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

Re: [NTG-context] sed question

2005-12-18 Thread David Arnold
IntermediateAlgebraText $ find . -name \*.tex -exec perl -npi -e 's/% output=pdf/%/g' \{\}\; find: -exec: no terminating ; On Dec 18, 2005, at 10:53 AM, Taco Hoekwater wrote: David Arnold wrote: All, How would I use sed to erase %output=pdf from any file ending with .tex in the current

Re: [NTG-context] sed question

2005-12-18 Thread David Arnold
IntermediateAlgebraText $ find . -name *.tex | xargs sed -i '/% output=pdf/d' sed: 1: ./book.tex: invalid command code . MacOSX Tiger On Dec 18, 2005, at 11:05 AM, VnPenguin wrote: On 12/18/05, David Arnold [EMAIL PROTECTED] wrote: All, How would I use sed to erase %output=pdf from any

Re: [NTG-context] sed question

2005-12-18 Thread Radhelorn
David Arnold wrote: IntermediateAlgebraText $ find . -name *.tex | xargs sed -i '/% output=pdf/d' sed: 1: ./book.tex: invalid command code . Strange. Command is valid and works for me. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list

Re: [NTG-context] sed question

2005-12-18 Thread David Arnold
I'll post on the MacOSX-TeX list and see what's up with this command. On Dec 18, 2005, at 11:26 AM, Radhelorn wrote: David Arnold wrote: IntermediateAlgebraText $ find . -name *.tex | xargs sed -i '/% output=pdf/d' sed: 1: ./book.tex: invalid command code . Strange. Command is valid and