# Bash: Find Files in Current and Subdirectories

> Recursively find files by name in Bash using the find command, with a wildcard pattern and the -iname flag for case-insensitive matches

**URL:** https://sentry.io/answers/find-files-in-current-and-all-subdirectories-in-bash/

---

## The Problem

How can I recursively find all files in current folders and subfolders based on wildcard matching using Bash?

## The Solution

We can accomplish this using the [`find`](https://en.wikipedia.org/wiki/Find_(Unix)) command:

```bash
find . -type f -name "A*"
```

In the above command, `.` specifies the current directory, `-type f` match files only, and `-name` specifies the filename to search for. This command will recursively search the current directory and its subdirectories for all files that have names starting with "A". Note that this will be a case-sensitive search. To perform a case-insensitive search, use `-iname` instead.

---

*Source: [sentry.io/answers/find-files-in-current-and-all-subdirectories-in-bash/](https://sentry.io/answers/find-files-in-current-and-all-subdirectories-in-bash/)*
