As a follow up to Tim's message:

On Fri, Sep 17, 2021, 4:34 PM Lubin, Tim <> wrote:

Dear Madhav,


In addition to the concise explanation in the link Arjuna sent, one might add a word about the grep’s general utility for Indologists.  With the already enormous and rapidly growing wealth of Sanskrit texts available in digital form from GRETIL and many other sources, one now has at one’s fingertips a powerful tool that acts like a global index to all that material, not just to certain words but to any string of characters or co-occurrence of multiple strings.  Moreover, your search will turn up not just text names and page or line numbers but a chunk of surrounding text for each hit, so you can see and compare the words “in situ.”


You need only keep all your Sanskrit digital texts in a folder (along with any number of nested subfolders) and direct the editor’s search engine to search that entire folder (or any given subfolder) for a given string occurring any all the files contained therein.


Of course you can use Finder on Mac to search folders or your entire drive for a particular string, but GREP allows searching using “regular expressions” (see, ch. 8 = pp. 189-222), to get maximally complete results despite variations in encoding, wording, spelling, sandhi,  etc., and find to multiple strings occurring in proximity to each but with a variable number of intervening characters, etc., etc.





Timothy Lubin
Jessie Ball duPont Professor of Religion and Adjunct Professor of Law
204 Tucker Hall
Washington and Lee University
Lexington, Virginia 24450

American Council of Learned Societies fellow, 2020–21
National Endowment for the Humanities fellow, 2020–21







From: INDOLOGY <> on behalf of INDOLOGY <>
Reply-To: Arjuna S R <>
Date: Friday, September 17, 2021 at 7:15 PM
To: Madhav Deshpande <>
Subject: Re: [INDOLOGY] Grep tool for searching on Mac


Dear Sir,


This link will help you know about 'grep' -


Thank you.





On Fri, 17 Sept 2021 at 21:30, Madhav Deshpande via INDOLOGY <> wrote:

To confess my ignorance, what exactly does GREP do? I use a MacBook. What would I need GREP for? Please enlighten me.

Madhav M. Deshpande

Professor Emeritus, Sanskrit and Linguistics

University of Michigan, Ann Arbor, Michigan, USA

Senior Fellow, Oxford Center for Hindu Studies

Adjunct Professor, National Institute of Advanced Studies, Bangalore, India


[Residence: Campbell, California, USA]



On Fri, Sep 17, 2021 at 8:20 AM Peter Wyzlic via INDOLOGY <> wrote:

Dear all,

just for the record: MacOS has also a classical command line grep. So, technically speaking, you do not necessarily need an extra program. It requires plain text files, however.

All the best
Peter Wyzlic

Am 17.09.2021 um 14:21 schrieb Lubin, Tim:

BBEdit is most common for grepping on Mac, but some other editors do it, e.g., Oxygen xml editor.

Before I switched to Mac, I used Examine64 for grep searches:

As I recall, it could even search binary files (e.g., docx, rtf, pdf), which BBEdit cannot do.



Tim Lubin


From: INDOLOGY <> on behalf of INDOLOGY <>
Reply-To: Sven Sellmer <>
Date: Friday, September 17, 2021 at 1:33 PM
To: Harry Spier <>
Subject: Re: [INDOLOGY] Grep tool for searching on Mac


On a Mac, BBEdit does "grep" multifile search. 


Best wishes,



Am 17.09.2021 um 13:30 schrieb Harry Spier via INDOLOGY <>:


Most good text editors have both a "find in files" feature that allows you to search in multiple files or whole directories at a time and also have a "regular expressions" feature that allow you to do what you call "grep" searchs.  I use notepad++ on windows but I can't give you the name of a text editor for Mac as I'm not a Mac user.  The Muktabodha digital library searchable etext library has that feature built in, but only for use on its searchable etext collection.

Harry Spier



On Fri, Sep 17, 2021 at 7:19 AM Krishnaprasad G via INDOLOGY <> wrote:

Dear all

Is there any readymade tool for using the Grep command for Sanskrit text string for multiple files?



INDOLOGY mailing list

INDOLOGY mailing list


INDOLOGY mailing list

Universität Bonn
Institut für Orient- und Asienwissenschaften
Brühler Str. 7
D-53119 Bonn
Tel.: 0228/73-62436

INDOLOGY mailing list

INDOLOGY mailing list

INDOLOGY mailing list