edit bash globbing

This commit is contained in:
I-Man Ng 2019-05-14 12:21:42 +08:00 committed by GitHub
parent 8a552221bc
commit f19e1eb7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,11 +90,13 @@ Esc + c
# run cat filename again
```
##### Bash inference for commands with question mark
##### Bash globbing
```bash
/b?n/?at /etc/pa??wd
# will be converted to /bin/cat /etc/passwd
# '*' character serves as a "wild card" for filename expansion.
# '?' character serves as a single-character "wild card" for filename expansion.
```bash
/b?n/?at #/bin/cat
/etc/pa*wd #/etc/passwd
```
##### Some handy environment variables