mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 00:36:35 +00:00
Swap * and ? in bash globbing sections to match with correct comments
Signed-off-by: valerionew <valerionappi995@gmail.com>
This commit is contained in:
parent
954f42c06a
commit
81ec32bfb9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user