search_dir=/the/path/to/base/dir/
for entry in "$search_dir"/*
do
echo "$entry"
done
More Related Contents:
- Correct Bash and shell script variable capitalization
- While loop stops reading after the first line in Bash
- Why equal to operator does not work if it is surrounded by space?
- “~/Desktop/test.txt: No such file or directory”
- Capturing Groups From a Grep RegEx
- How to put a line comment for a multi-line command [duplicate]
- Why does “local” sweep the return code of a command?
- Batch renaming files with Bash
- How to generate random number in Bash?
- In bash, how do I bind a function key to a command?
- “Invalid Arithmetic Operator” when doing floating-point math in bash
- Using sed to mass rename files
- Colorized grep — viewing the entire file with highlighted matches
- How to pass in password to pg_dump?
- Hexadecimal To Decimal in Shell Script
- LINES and COLUMNS environmental variables lost in a script
- How to kill all subprocesses of shell?
- How to reset COMP_WORDBREAKS without affecting other completion script?
- How do file descriptors work?
- Execute a shell function with timeout
- Convert Unix timestamp to a date string
- Using Bash to display a progress indicator (spinner) [duplicate]
- When does command substitution spawn more subshells than the same commands in isolation?
- Extract version number from a string
- How do I get both STDOUT and STDERR to go to the terminal and a log file?
- -bash: __git_ps1: command not found
- Use GNU find to show only the leaf directories
- Get the name of the caller script in bash script
- docker entrypoint running bash script gets “permission denied”
- What does `kill -0 $pid` in a shell script do?