Skip to content

Instantly share code, notes, and snippets.

@obfusk
Created July 30, 2020 20:22
Show Gist options
  • Select an option

  • Save obfusk/b19e087bab1f4e1f7e837dab32c4dad2 to your computer and use it in GitHub Desktop.

Select an option

Save obfusk/b19e087bab1f4e1f7e837dab32c4dad2 to your computer and use it in GitHub Desktop.
radicals
for x in {1..214}; do
echo $x
curl -s -- "https://en.wikipedia.org/wiki/Radical_$x" \
| ( grep -E -A5 '>(without|0|no)( additional)? strokes|>0(<|$)|\+ ?0(<|$)' || echo ) \
| tail -n +2 | tr '\n' ' ' | sed 's!</tr>.*!!' | tr -d '0-9A-Za-z"=<> :/.%#()+_&;?-'
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment