mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-29 15:46:35 +00:00
edit bash globbing
This commit is contained in:
parent
8a552221bc
commit
f19e1eb7fd
10
README.md
10
README.md
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user