Created
November 20, 2011 06:40
-
-
Save jbranchaud/1379898 to your computer and use it in GitHub Desktop.
Finds all files at or below this directory of a given file type.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is going to find all files below the current directory of the given type | |
ftype=$1 | |
find ./ | awk "/${ftype}$/ {print \$0}" | sed -e 's/\/\//\//' | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment