Give this a try:
for dir in */
More Related Contents:
- While loop stops reading after the first line in Bash
- How to detect if a script is being sourced
- Why does “local” sweep the return code of a command?
- Renaming files in a folder to sequential numbers
- Batch renaming files with Bash
- How to generate random number in Bash?
- How to skip the for loop when there are no matching files?
- “Invalid Arithmetic Operator” when doing floating-point math in bash
- Using sed to mass rename files
- Sort a text file by line length including spaces
- Passing arguments with spaces between (bash) script
- How to get script directory in POSIX sh?
- List files not matching a pattern?
- Sleep until a specific time/date
- Commenting in a Bash script inside a multiline command
- How to parallelize for-loop in bash limiting number of processes
- Bash script to cd to directory with spaces in pathname
- Get the date (a day before current time) in Bash
- Split CSV files into smaller files but keeping the headers?
- How to cd into a directory with space in the name?
- What is your single most favorite command-line trick using Bash? [closed]
- Execute a shell function with timeout
- How to parse $QUERY_STRING from a bash CGI script?
- Read a file by bytes in BASH
- How can I print each command before executing? [duplicate]
- Using Bash to display a progress indicator (spinner) [duplicate]
- Can parameter expansion be nested in Bash? [duplicate]
- How execute bash script line by line?
- How to update one file in a zip archive
- What is the proper way to test a Bash function’s return value?