Created
September 7, 2020 15:41
-
-
Save irisdyoung/6b3f2420707c2b904a03b95e6a2b680f 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/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