---
title: "Discussion on \"Checking for a Substring in Bash\" | Hashnode"
description: "Discussion on \"Checking for a Substring in Bash\". Check whether a string contains a substring in Bash using pattern matching, case statements, grep, expr, and regex."
url: "https://hashnode.com/posts/checking-for-a-substring-in-bash/6b08bf9dd148133b009872d7"
---

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

Discussion

# [Checking for a Substring in Bash](https://vultr.hashnode.dev/checking-for-a-substring-in-bash?utm_source=hashnode&utm_medium=feed)

Check whether a string contains a substring in Bash using pattern matching, case statements, grep, expr, and regex.

5d ago · 8 min read · vultr.hashnode.dev  
Read the article

-   [#bash](https://hashnode.com/tag/bash)
-   [#linux](https://hashnode.com/tag/linux)
-   [#scripting](https://hashnode.com/tag/scripting)

## Written by

[Sanskriti Harmukh](https://hashnode.com/@sharmukh)

@sharmukh · Durg, India

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

Developer Advocate at Vultr

A Developer Advocate with a focus on improving the developer experience through clear communication, technical enablement, and community engagement.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
