1)  The Muktabodha searchable etext library  has searchs with regular expressions (GREP)  built in. You can search the entire collection or a single text. When you open the searchable etext collection you'll see a help link in the upper right side that explains with examples how to do regular expression searchs on the collection.
https://muktalib7.com/DL_CATALOG_ROOT/digital_library_secure_entry.htm

2)  GRETIL allows you to download ther  entire collection.  I've done this and use notepad++ (windows only) to do regular expression searchs on the entire collection .
http://gretil.sub.uni-goettingen.de/gretil.html#cdl

Harry Spier





On Fri, Sep 17, 2021 at 5:33 PM Lubin, Tim <LubinT@wlu.edu> 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 https://s3.amazonaws.com/BBSW-download/BBEdit_14.0_User_Manual.pdf, 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.

 

Best,
Tim

 

 

_________________________________________
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

https://lubin.academic.wlu.edu/ 
http://wlu.academia.edu/TimothyLubin 
https://ssrn.com/author=930949
https://dharma.hypotheses.org/people/lubin-timothy

 

 

 

 

 

 

From: INDOLOGY <indology-bounces@list.indology.info> on behalf of INDOLOGY <indology@list.indology.info>
Reply-To: Arjuna S R <srarjunaa@gmail.com>
Date: Friday, September 17, 2021 at 7:15 PM
To: Madhav Deshpande <mmdesh@umich.edu>
Cc: INDOLOGY <indology@list.indology.info>
Subject: Re: [INDOLOGY] Grep tool for searching on Mac

 

Dear Sir,

 

This link will help you know about 'grep' - http://qpeng.org/computer/grep.htm

 

Thank you.

 

Regards,

Arjuna

 

On Fri, 17 Sept 2021 at 21:30, Madhav Deshpande via INDOLOGY <indology@list.indology.info> 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 <indology@list.indology.info> 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:

https://www.examine64.com/

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

 

Best,

Tim Lubin

 

From: INDOLOGY <indology-bounces@list.indology.info> on behalf of INDOLOGY <indology@list.indology.info>
Reply-To: Sven Sellmer <sellmers@gmx.de>
Date: Friday, September 17, 2021 at 1:33 PM
To: Harry Spier <vasishtha.spier@gmail.com>
Cc: INDOLOGY <indology@list.indology.info>
Subject: Re: [INDOLOGY] Grep tool for searching on Mac

 

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

 

Best wishes,

Sven

 

Am 17.09.2021 um 13:30 schrieb Harry Spier via INDOLOGY <indology@list.indology.info>:

 


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 <indology@list.indology.info> wrote:

Dear all

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

 

Thanks


_______________________________________________
INDOLOGY mailing list
INDOLOGY@list.indology.info
https://list.indology.info/mailman/listinfo/indology


_______________________________________________
INDOLOGY mailing list
INDOLOGY@list.indology.info
https://list.indology.info/mailman/listinfo/indology

 



_______________________________________________
INDOLOGY mailing list
INDOLOGY@list.indology.info
https://list.indology.info/mailman/listinfo/indology



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


_______________________________________________
INDOLOGY mailing list
INDOLOGY@list.indology.info
https://list.indology.info/mailman/listinfo/indology


_______________________________________________
INDOLOGY mailing list
INDOLOGY@list.indology.info
https://list.indology.info/mailman/listinfo/indology


_______________________________________________
INDOLOGY mailing list
INDOLOGY@list.indology.info
https://list.indology.info/mailman/listinfo/indology