[OS X TeX] grep with TexShop

Peter Dyballa Peter_Dyballa at Web.DE
Thu Aug 25 18:05:56 EDT 2005


Am 25.08.2005 um 23:49 schrieb Jean-Pierre Gattuso:

> How do I use the grep capabilities to find invisible characters such 
> as carriage return, tab etc..?
>

A short answer: \r is the carriage return, Ctrl-m, dec 13, hex 0c, oct 
15 as used in Mac OS, while in Windows and DOS it as accompanied by the 
linefeed \n, Ctrl-j, dec 10, hex 0a, oct 12, which is usually used in 
UNIX to end a line.

There might be some more in Help. TeXShop uses OgreKit (the OniGuruma 
Regular Expression Framework for Cocoa) as engine for regular 
expressions -- because TeXShop is built for a world wide 'market'. 
There is probably documentation about it on the web. Last year I found 
only a Japanese site with a button to translate all in English ...

As far as I remember both BBEdit and OgreKit use a syntax that is close 
to what I am used on the command line or in GNU Emacs. I had to 
practise and was glad of undo -- and of closing the window without 
needing to save.

--
Greetings

   Pete

Government is actually the worst failure of civilized man. There has
never been a really good one, and even those that are most tolerable
are arbitrary, cruel, grasping and unintelligent.       -- H. L. Mencken

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list