<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3" -->

---
title: Developer essentials: How to search code using grep
description: Grop is a command-line tool that allows you to use regular expressions to search for patterns. The basic usage looks like this: bash, with different options...
canonical: https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Developer essentials: How to search code using grep | daily.dev
og:description: Grop is a command-line tool that allows you to use regular expressions to search for patterns. The basic usage looks like this: bash, with different options...
og:url: https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3
og:image: https://api.daily.dev/og/posts/yN6KGxUI3.png
og:image:alt: Developer essentials: How to search code using grep
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Developer essentials: How to search code using grep

**[MDN Blog](https://daily.dev/sources/mdnblog)** · 1 min read · 14 upvotes · 1 comments

## Summary

Grop is a command-line tool that allows you to use regular expressions to search for patterns. The basic usage looks like this: bash, with different options and features, but the core behaviour is the same for the most part. You can run to check which one you have installed: bash.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developer.mozilla.org/en-US/blog/searching-code-with-grep/>

## Community discussion

Top comments from developers on daily.dev.

**@ghost** · 0 upvotes

> uhm... https://github.com/BurntSushi/ripgrep
>
> This is *the* way to search code. There's ack, and silversurfer whatever, but ripgrep itches EVERYTHING, and does it a billion times faster.

---

Tags: [#github](https://daily.dev/tags/github), [#community](https://daily.dev/tags/community), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Developer essentials: How to search code using grep","url":"https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3"},"datePublished":"2023-07-03T01:21:57.455Z","dateModified":"2023-07-20T14:10:56.027Z","description":"Grop is a command-line tool that allows you to use regular expressions to search for patterns. The basic usage looks like this: bash, with different options...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31c9af48a7737a531876478e5b134728?_a=AQADKdt","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/31c9af48a7737a531876478e5b134728?_a=AQADKdt","isAccessibleForFree":true,"articleSection":"MDN Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"MDN Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/236034d60b694d00b5fb9a5a5d6b57ae","url":"https://daily.dev/sources/mdnblog"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"github,community,github-actions","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"MDN Blog","item":"https://daily.dev/sources/mdnblog"},{"@type":"ListItem","position":3,"name":"Developer essentials: How to search code using grep"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/developer-essentials-how-to-search-code-using-grep-yn6kgxui3","comment":[{"@type":"Comment","text":"uhm… https://github.com/BurntSushi/ripgrep\nThis is the way to search code. There’s ack, and silversurfer whatever, but ripgrep itches EVERYTHING, and does it a billion times faster.","datePublished":"2023-07-07T20:41:37.816Z","url":"https://daily.dev/posts/yN6KGxUI3#c-Vbpwr7Uh4","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"}}]}
```

