Created
January 23, 2016 03:39
-
-
Save Eriner/05ff92c838a60b76dc50 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
#!/usr/bin/env zsh | |
input=($(<${1})) | |
for word in ${input}; do | |
if [[ ${word} == $(print -n ${word} | rev) ]]; then | |
print "True" | |
else | |
print "False" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment