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 # run cat filename again
``` ```
##### Bash inference for commands with question mark ##### Bash globbing
```bash ```bash
/b?n/?at /etc/pa??wd # '*' character serves as a "wild card" for filename expansion.
# will be converted to /bin/cat /etc/passwd # '?' 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 ##### Some handy environment variables