Skip to content

Instantly share code, notes, and snippets.

@bearzk
Created December 6, 2015 21:27
Show Gist options
  • Save bearzk/f66d0dfc885ac552e003 to your computer and use it in GitHub Desktop.
Save bearzk/f66d0dfc885ac552e003 to your computer and use it in GitHub Desktop.
#!/bin/bash
ok=false
echo
for file in $(find . -name '*.rb'); do
if [ $ok ]; then
echo -ne "\033[2A"
echo -ne "\033[K"
fi
echo $file;
ruby -c $file;
if [ $? -eq 0 ]; then
ok=true
else
ok=false
fi
done;
#fgrep -r "source" . | sed -E -e 's/(.*)recipes\/(.*)\.rb.*source.*\"(.*\.erb)\"/\1 \2 \3/;tx;d;:x' | sort -u
#echo "test" | awk <<CHECK
#BEGIN{FS=" "}
#{
# print $1
#}
#CHECK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment