Skip to content

Instantly share code, notes, and snippets.

@leckylao
Created January 16, 2013 10:10
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 leckylao/4546087 to your computer and use it in GitHub Desktop.
Save leckylao/4546087 to your computer and use it in GitHub Desktop.
#!/bin/sh
# generate tag file for lookupfile plugin
echo -e "!_TAG_FILE_SORTED\t2\t/2=foldcase/" > filenametags
find . -not -regex '.*\.\(png\|gif\|csv\|jpg\|jpeg\|html\)' -not -regex '\./db/migrate/.*' -not -regex '\./\.git/.*' -not -regex '\./\.escm/.*' -not -regex '\./.*\.escm_ignore' -not -regex '\./.*\.svn.*' -not -regex '\./report/.*' -type f -printf "%f\t%p\t1\n" | \
sort -f >> filenametags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment