SyntaxFix
Write A Post
Hire A Developer
Questions
The accepted answer will not return files prefix with a . To do that use
for entry in "$search_dir"/* "$search_dir"/.[!.]* "$search_dir"/..?* do echo "$entry" done