Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamharshit/a7e1b5835fd5e7f161d06b9c722b7d09 to your computer and use it in GitHub Desktop.
Save iamharshit/a7e1b5835fd5e7f161d06b9c722b7d09 to your computer and use it in GitHub Desktop.
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