mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-01 16:26:35 +00:00
Simplify glob expression
Signed-off-by: O <herrcykel@users.noreply.github.com>
This commit is contained in:
parent
c2b96736bd
commit
8ab7cf7a6d
@ -107,7 +107,7 @@ sudo !!
|
|||||||
ls -l [a-z]* #list all files with alphabet in its filename.
|
ls -l [a-z]* #list all files with alphabet in its filename.
|
||||||
|
|
||||||
# ‘{}’ can be used to match filenames with more than one patterns
|
# ‘{}’ can be used to match filenames with more than one patterns
|
||||||
ls {*.sh,*.py} #list all .sh and .py files
|
ls *.{sh,py} #list all .sh and .py files
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Some handy environment variables
|
##### Some handy environment variables
|
||||||
|
Loading…
Reference in New Issue
Block a user