Created
December 7, 2017 19:58
-
-
Save sio/aa1520fcdc85a012ca3670f9bb39702b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# | |
# Find case mismatches in for Load function calls in current directory | |
# | |
LOAD_STRINGS=$(ls *.pq|sed -e 's:\.pq$:":' -e 's:^:":') | |
echo "$LOAD_STRINGS"|while read LINE | |
do | |
RESULT=$(grep -Ri "$LINE" . | grep -v "$LINE") | |
if [ ! -z "$RESULT" ] | |
then | |
echo -e "---$LINE---:\n$RESULT\n" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment