Merge pull request #20 from valerionew/patch-1

Swap * and ? in bash globbing sections to match with correct comments
This commit is contained in:
Bonnie I-Man Ng 2021-08-13 19:03:16 +08:00 committed by GitHub
commit ce13d4af19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,10 +98,10 @@ sudo !!
##### Bash globbing
```bash
# '*' serves as a "wild card" for filename expansion.
/b?n/?at #/bin/cat
/etc/pa*wd #/etc/passwd
# '?' serves as a single-character "wild card" for filename expansion.
/etc/pa*wd #/etc/passwd
/b?n/?at #/bin/cat
# [] serves to match the character from a range.
ls -l [a-z]* #list all files with alphabet in its filename.