[OS X TeX] Need help with sed command.
    Herbert Schulz 
    herbs at wideopenwest.com
       
    Sun Jan  7 20:33:35 EST 2007
    
    
  
Howdy,
This really isn't OT! :-) But there are enough *nix gurus on this  
list I figured I'd get a straight answer without too much blushing.
I'm trying to build a temporary BIBINPUTS environment variable by  
storing the output of
kpsewhich --show-path=bib
in BIBINPUTS (don't ask why...). Unfortunately, the output of the  
kpsewhich command above lists directories which are to use the ls-R  
files to do the search (for speed) with a preceding `!!' which isn't  
correct for a simple BIBINPUTS path specification. I've tried
kpsewhich --show-path=bib | sed -e "s/\!\!//"
which only filters the first occurance of `!!'. Is there way (or  
better way altogether) to filter all of `!!' out via sed or some  
other command through a pipe?
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
    
    
More information about the MacOSX-TeX
mailing list