Skip to content

Instantly share code, notes, and snippets.

@sio
Created December 7, 2017 19:58
Show Gist options
  • Save sio/aa1520fcdc85a012ca3670f9bb39702b to your computer and use it in GitHub Desktop.
Save sio/aa1520fcdc85a012ca3670f9bb39702b to your computer and use it in GitHub Desktop.
#/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