mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
Merge pull request #20 from valerionew/patch-1
Swap * and ? in bash globbing sections to match with correct comments
This commit is contained in:
commit
ce13d4af19
@ -98,10 +98,10 @@ sudo !!
|
|||||||
##### Bash globbing
|
##### Bash globbing
|
||||||
```bash
|
```bash
|
||||||
# '*' serves as a "wild card" for filename expansion.
|
# '*' 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.
|
# '?' 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.
|
# ‘[]’ serves to match the character from a range.
|
||||||
ls -l [a-z]* #list all files with alphabet in its filename.
|
ls -l [a-z]* #list all files with alphabet in its filename.
|
||||||
|
Loading…
Reference in New Issue
Block a user