Lose the spaces; bash cares.
for file in "${arg}"/*.{txt,h,py}; do
More Related Contents:
- Reading quoted/escaped arguments correctly from a string
- What is the cleanest way to ssh and run multiple commands in Bash?
- How can I do a recursive find/replace of a string with awk or sed?
- How to add a progress bar to a shell script?
- What is the purpose of “&&” in a shell command?
- How to avoid heredoc expanding variables? [duplicate]
- Is there a list of ‘if’ switches anywhere?
- How do I escape the wildcard/asterisk character in bash?
- Bash script – store stderr in a variable [duplicate]
- How do I get bc(1) to print the leading zero?
- Bash command to sum a column of numbers [duplicate]
- Why can’t I use job control in a bash script?
- echo that outputs to stderr
- bash: $[] vs. $(())
- Bash if statement with multiple conditions throws an error
- How to show and update echo on same line
- printf in bash: “09” and “08” are invalid numbers, “07” and “06” are fine
- Getting the parent of a directory in Bash
- Building R Packages using Alternate GCC
- Loop over directories with whitespace in Bash
- When should I double-quote a parameter expansion? [duplicate]
- Bash script – “/bin/bash^M: bad interpreter: No such file or directory” [duplicate]
- Running programs in parallel using xargs
- How do I check if a directory exists or not in a Bash shell script?
- bash “if [ false ];” returns true instead of false — why?
- Using conditional statements inside ‘expect’
- shell script respond to keypress
- Store output of sed into a variable [duplicate]
- Why doesn’t my terminal output unicode characters properly?
- How to loop over files in natural order in Bash?