Merge pull request #13 from paxperscientiam/brace-expansion
Brace expansion
This commit is contained in:
commit
15941d9930
|
@ -748,6 +748,11 @@ for dir in ~/Downloads/*/; do
|
|||
printf '%s\n' "$dir"
|
||||
done
|
||||
|
||||
# Leverage brace expansion to loop, explicit reference
|
||||
for file in /path/to/parentdir/{file1,file2,subdir/file3}; do
|
||||
printf '%s\n' "$file"
|
||||
done
|
||||
|
||||
# Iterate recursively.
|
||||
shopt -s globstar
|
||||
for file in ~/Pictures/**/*; do
|
||||
|
|
Loading…
Reference in New Issue