Use find:
find . -name \*.txt -print
On systems that use GNU find, like most GNU/Linux distributions, you can leave out the -print.
More Related Contents:
- find a word from all files excluding 1 directory
- When did Access control list (ACL) come to Unix/Linux?
- Looping through the content of a file in Bash
- How do SO_REUSEADDR and SO_REUSEPORT differ?
- Save modifications in place with awk
- Why should eval be avoided in Bash, and what should I use instead?
- Setting an argument with bash [duplicate]
- How to kill a child process after a given timeout in Bash?
- Environment variable substitution in sed
- What does “&” at the end of a linux command mean?
- Delete empty lines using sed
- Linux: copy and create destination dir if it does not exist
- Getting a unique id from a unix-like system
- How to sort a file in-place?
- How to get full path of a file?
- Is it OK to use the same input file as output of a piped command?
- Finding contents of one file in another file
- Difference between Real User ID, Effective User ID and Saved User ID
- How to get the command line args passed to a running process on unix/linux systems?
- Relinking an anonymous (unlinked but open) file
- When to wrap quotes around a shell variable?
- How do you normalize a file path in Bash?
- Comparing Unix/Linux IPC
- How to get file creation date/time in Bash/Debian?
- Using grep and sed to find and replace a string
- Syntax error near unexpected token ‘then’
- Why doesn’t “sort file1 > file1” work?
- Bash script to remove ‘x’ amount of characters the end of multiple filenames in a directory?
- Redirecting stdout with find -exec and without creating new shell
- How pthread_mutex_lock is implemented