Created
January 13, 2022 13:03
-
-
Save Philmist/06bc57d74040479ce5137369aba3bc1b to your computer and use it in GitHub Desktop.
Looking Glass Portraitのプレイリストでファイル名が"\s+_\s*"みたいな感じでつけられてる時にアンダーバーの前のやつだけ取りだす
This file contains hidden or 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
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