Tagged Questions
1
vote
1answer
72 views
Quoting curly braces in the shell [duplicate]
I found examples of different quoting for curly braces for find, but I could not find an explanation. The possible choices are:
1. {}
2. '{}'
3. "{}"
And they all seem to work fine. Is ...
1
vote
2answers
268 views
Auto-expansion problem with array elements containing an '*' (asterisk)
I'm trying to write me a find script that should later be able to read a list of directories to be excluded from an external file. Whilst I can accomplish that part myself, it's the annoying array ...
6
votes
2answers
732 views
Using curly brackets (braces) to create folder structure with `mkdir -p`
As man mkdir states
-p, --parents
no error if existing, make parent directories as needed
When I ran this command
mkdir -p work/{F1,F2,F3}/{temp1,temp2}
It creates a folder ...
6
votes
2answers
248 views
How can I use $var in a shell brace expansion of a sequence?
I want to use $var in a shell brace expansion with a range, in bash.
Simply putting {$var1..$var2} doesn't work, so I went "lateral"...
The following works, but it's a bit kludgey.
# remove the ...