Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JJ
Created April 12, 2018 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JJ/72d332e4cee266a58f8e0b07b660652a to your computer and use it in GitHub Desktop.
Save JJ/72d332e4cee266a58f8e0b07b660652a to your computer and use it in GitHub Desktop.
Extract the tags from the perl6/doc POD6
# git clone perl6/doc, cd doc
git grep "=begin pod" | perl6 -e 'say slurp().split("\n").grep( /tag/ ).map( * ~~ / \<(.+)\> / ).map( *.values.[0] ).join("\n")'
# (「convert」 「convert」 「convert」 「convert」 「convert」 「self」 「tutorial」 「self」 「tutorial」 「perl6」 「self」 「perl6」 「perl6」 「perl6」 「perl6」 「index」 「perl6」 「list」 「tutorial」 「perl6」 「convert」 「perl6」 「perl6」 「perl6」 「perl6」 「perl6」 「tutorial」 「perl6」 「perl6」 「perl6」 「perl6」 「perl6」 「perl6」 「tutorial」 「perl6」 「perl6」 「index」 「perl6」 「convert」 「perl6」 「perl6」 「perl6」 「perl6」 「pod6」 「perl6」 「tutorial」 「index」 「perl6」 「perl6」 「index」 「tutorial」 「perl6」)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment