Use find for that:
find . -name "foo*"
find
needs a starting point, and the .
(dot) points to the current directory.
More Related Contents:
- When should I wrap quotes around a shell variable?
- How do I test if a variable is a number in Bash?
- What does set -e mean in a bash script?
- How to get process ID of background process?
- Forcing bash to expand variables in a string loaded from a file
- Script parameters in Bash
- Bash script processing limited number of commands in parallel
- Raise error in a Bash script
- Avoid gnome-terminal close after script execution?
- How do I use the lines of a file as arguments of a command?
- How can I kill a process by name instead of PID, on Linux? [duplicate]
- My shell script stops after exec
- ‘find -exec’ a shell function in Linux
- How to run a shell script on a Unix console or Mac terminal?
- How do I create a crontab through a script
- GROUP BY/SUM from shell
- using awk with column value conditions
- Bash Script – iterating over output of find
- How to print third column to last column?
- How to only get file name with Linux ‘find’?
- Syntax with pound and percent sign after shell parameter name [duplicate]
- Insert multiple lines into a file after specified pattern using shell script
- How to kill zombie process
- Bash: wait with timeout
- Get ceiling integer from number in linux (BASH)
- How can I trim white space from a variable in awk?
- How do you filter out all unique lines in a file?
- Linux shell script to add leading zeros to file names
- Colour highlighting output based on regex in shell
- Need to remove the count from the output when using “uniq -c” command