[INDOLOGY] Grep tool for searching on Mac

Peter Wyzlic pwyzlic at uni-bonn.de
Fri Sep 17 23:13:37 UTC 2021


Am 18.09.2021 um 00:22 schrieb Madhav Deshpande via INDOLOGY <indology at list.indology.info>:
> 
> Thanks everyone for informing me about the use and benefits of GREP. One last question. Is GREP a downloadable software that will work on Mac?

You already have it. 

The program is in the Unix part of the system. Go to Spotlight Finder (generally opened by Command + Space), then type in "Terminal“ and take the offered program icon or hit the Launchpad icon and type in "Terminal“. Grep is one of the base Unix commands that is invoked in the text terminal. 

Base syntax: grep "search pattern“ filename (like this: link: <https://i.postimg.cc/zBry4r9t/screenshot-01.png>):

The program gives out lines that match the search pattern as simple text. Like this : <https://i.postimg.cc/Fs7HWzYF/screenshot-02.png>

To get the command line options, type in "man grep“ and hit enter.

Text editors like BBedit give this a more amiable user interface, of course.

All the best
Peter Wyzlic

(in case the screenshots do not pass the mailing list server, I provided links).
--
Institut für Orient- und Asienwissenschaften
Bibliothek
Universität Bonn
Brühler Straße 7
53119 Bonn



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://list.indology.info/pipermail/indology/attachments/20210918/fef2f625/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot-01.png
Type: image/png
Size: 471655 bytes
Desc: not available
URL: <https://list.indology.info/pipermail/indology/attachments/20210918/fef2f625/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot-02.png
Type: image/png
Size: 886527 bytes
Desc: not available
URL: <https://list.indology.info/pipermail/indology/attachments/20210918/fef2f625/attachment-0001.png>


More information about the INDOLOGY mailing list