Skip to content

Instantly share code, notes, and snippets.

@irisdyoung
Created September 7, 2020 15:41
Show Gist options
  • Save irisdyoung/6b3f2420707c2b904a03b95e6a2b680f to your computer and use it in GitHub Desktop.
Save irisdyoung/6b3f2420707c2b904a03b95e6a2b680f to your computer and use it in GitHub Desktop.
#! /bin/bash
# identify wherever $1 is found but not $2
for expected in `find . -name $1 | sed "s:${1}:${2}:"`
do export found=`ls $expected 2> /dev/null`
if [ ! "$found" == "$expected" ]; then
echo $expected
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment