10 lines
150 B
Bash
Executable File
10 lines
150 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
IFS=$'\n'
|
|
array=($(find . -mindepth 1 -maxdepth 1 -type d))
|
|
unset IFS
|
|
|
|
for item in "${array[@]}"; do
|
|
echo "[ ${item} ]"
|
|
done
|