Skip to content

Instantly share code, notes, and snippets.

@jbranchaud
Created November 20, 2011 06:40
Show Gist options
  • Save jbranchaud/1379898 to your computer and use it in GitHub Desktop.
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.
#!/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