Skip to content

Instantly share code, notes, and snippets.

View christianhujer's full-sized avatar
🧙‍♂️
🧙‍♂️ Doing magic

Christian Hujer christianhujer

🧙‍♂️
🧙‍♂️ Doing magic
View GitHub Profile
@christianhujer
christianhujer / treeHighlight.sh
Last active February 2, 2016 05:21
Highlights incoherence in a directory tree.
#!/bin/bash
startDir=$1
wordToFind=$2
for dir in $(find $startDir -type d) ; do
echo -n "$dir:"
for file in $(find $dir --depth 1 -name "*.rb") ; do
if grep $wordToFind $file >/dev/null ; then
echo -n "X"