---
title: "Discussion on \"grep\" | Hashnode"
description: "Discussion on \"grep\". -w: match whole word\n-i: ignore case\n-v: match doesn't contain\n-n: show line number\n-o: only show part that exactly matches\n-A n: n lines after the occurrence\n-B n: n lines before the occurrence\n-C n:"
url: "https://hashnode.com/posts/grep/69b3360693256dfc53111b85"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [grep](https://blog.zackhu.com/grep?utm_source=hashnode&utm_medium=feed)

\-w: match whole word -i: ignore case -v: match doesn't contain -n: show line number -o: only show part that exactly matches -A n: n lines after the occurrence -B n: n lines before the occurrence -C n:

Mar 12 · 1 min read · blog.zackhu.com  
Read the article

## Written by

[Zack Hu](https://hashnode.com/@ZackHu)

@ZackHu

  
[View profile](https://hashnode.com/@ZackHu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
