I\'m trying to find all files with a specific extension in a directory and its subdirectories with my bash (Latest Ubuntu LTS Release).
This is what\'s written in a
find "$PWD" -type f -name "*.in"
The syntax I use is a bit different than what @Matt suggested:
find $directory -type f -name \*.in
(it's one less keystroke).
Without using find
:
du -a $directory | awk '{print $2}' | grep '\.in$'
To find all the pom.xml
files in your current directory and print them, you can use:
find . -name 'pom.xml' -print