Skip to content

Instantly share code, notes, and snippets.

@christianvuerings
Created March 25, 2013 23:32
Show Gist options
  • Save christianvuerings/5241870 to your computer and use it in GitHub Desktop.
Save christianvuerings/5241870 to your computer and use it in GitHub Desktop.
Search for image files in Calcentral
#!/bin/bash
FILES=app/assets/images/*.*
for f in $FILES
do
filename=`basename $f`
echo $filename
ack --ignore-dir=log --ignore-dir=.idea --nobinary $filename
#grep -Ir --exclude=".idea\*" --exclude="*.log" "$filename" ./
done
# cat >> ~/.ackrc
# --type-add
# html=.haml
# --type-add
# css=.sass,.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment