mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2025-07-17 02:03:15 +02:00
Simplify glob expression
Signed-off-by: O <herrcykel@users.noreply.github.com>
This commit is contained in:
@ -107,7 +107,7 @@ sudo !!
|
||||
ls -l [a-z]* #list all files with alphabet in its filename.
|
||||
|
||||
# ‘{}’ 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
|
||||
|
Reference in New Issue
Block a user