Skip to content

Instantly share code, notes, and snippets.

@Eriner
Created January 23, 2016 03:39
Show Gist options
  • Save Eriner/05ff92c838a60b76dc50 to your computer and use it in GitHub Desktop.
Save Eriner/05ff92c838a60b76dc50 to your computer and use it in GitHub Desktop.
#!/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