Created
June 15, 2017 06:21
-
-
Save iamharshit/a7e1b5835fd5e7f161d06b9c722b7d09 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
echo `rm myfile2.txt` | |
declare -i count | |
count=0 | |
declare -i total | |
total=0 | |
cat vocab_chat.txt | while read p; do | |
total=total+1 | |
if echo "$p" | grep '*'; then | |
echo '-----------------' | |
else | |
echo $p | |
var=`find glove_twitter.txt -type f -print | xargs grep -- '$p'` #"`grep $p glove_twitter.txt`" | |
if [ -z "$var" ] | |
then : | |
else | |
echo "$p" >> myfile2.txt | |
count=count+1 | |
fi | |
fi | |
done | |
echo $total | |
echo $count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment