Skip to content

Instantly share code, notes, and snippets.

@Philmist
Created January 13, 2022 13:03
Show Gist options
  • Save Philmist/06bc57d74040479ce5137369aba3bc1b to your computer and use it in GitHub Desktop.
Save Philmist/06bc57d74040479ce5137369aba3bc1b to your computer and use it in GitHub Desktop.
Looking Glass Portraitのプレイリストでファイル名が"\s+_\s*"みたいな感じでつけられてる時にアンダーバーの前のやつだけ取りだす
Get-Content .\playlist.json | jq '[.[] | .filename | capture(\"(?<n>.+?)_.*\") | .n ] | group_by(.) | map({(.[0]):length})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment