Skip to content

Commit d5cdaef

Browse files
authored
Added tilde expansion support to README
1 parent 5b5fd8f commit d5cdaef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* [Exclude files from the matching](#exclude-files-from-the-matching)
2121
* [Wildcards: Match any one character with question mark ('?')](#wildcards-match-any-one-character-with-question-mark-)
2222
* [Case sensitivity](#case-sensitivity)
23+
* [Tilde expansion](#tilde-expansion)
2324
- [Contributing](#contributing)
2425
- [License](#license)
2526

@@ -260,6 +261,19 @@ foo@bar:~$ ./glob -i "test_files_05/*.png","test_files_05/*.PNG"
260261
"test_files_05/file4.PNG"
261262
```
262263

264+
### Tilde expansion
265+
266+
```console
267+
foo@bar:~$ ./glob -i "~/.b*"
268+
"/Users/pranav/.bashrc"
269+
"/Users/pranav/.bash_sessions"
270+
"/Users/pranav/.bash_profile"
271+
"/Users/pranav/.bash_history"
272+
273+
foo@bar:~$ ./glob -i "~/Documents/Projects/glob/**/glob/*.h"
274+
"/Users/pranav/Documents/Projects/glob/include/glob/glob.h"
275+
```
276+
263277
## Contributing
264278
Contributions are welcome, have a look at the [CONTRIBUTING.md](CONTRIBUTING.md) document for more information.
265279

0 commit comments

Comments
 (0)