Skip to content

Instantly share code, notes, and snippets.

@olih
Created April 8, 2013 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olih/5337747 to your computer and use it in GitHub Desktop.
Save olih/5337747 to your computer and use it in GitHub Desktop.
Search files on Mac OS
#Finds a list of jar files
find . -name \*.jar -print
#Using an alias
#Usage list *.jar
function list { find . -name "$1" -print ;}
export -f list
#Search text in files, recursive, ignore case, with file and line number:
grep -Hirn term *.txt
#Converting svg to thumbnails
find . -name \*.svg -exec qlmanage -t -s 1000 -o ~/Pictures/thumbnails/ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment