diadia

興味があることをやってみる。自分のメモを残しておきます。

sublimetextをうまく使えるようになりたい

参考になったもの:

Sublime Text2の複数カーソルの使い方 - Qiita

以下のものからuuidのみ取り出したい。 どうすればよいのか?
とったものはシングルクォーテーションで囲む。

{
  "took" : 8,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 8,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "1",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "e09cd8f2-e678-7ac3-3825-26135ca4cffd",
          "text_id" : 291
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "2",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "194dd474-4947-9010-4e80-de80a562cdab",
          "text_id" : 338
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "3",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "b892e69e-75f2-8f42-f37c-3964ed5a1bc0",
          "text_id" : 941
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "4",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "adbea952-96bb-964c-428d-0f7932459775",
          "text_id" : 922
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "5",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "71c532d6-a719-c31c-bcc6-9d4fee4ca5e7",
          "text_id" : 912
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "6",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "0856e4f5-6b91-7b27-d96b-d72bb2edff0f",
          "text_id" : 567
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "7",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "ec6afdae-11ef-8ed3-e266-5a6a3ba04f51",
          "text_id" : 777
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "8",
        "_score" : 1.0,
        "_source" : {
          "uuid" : "0c501f01-b01d-091e-6f5d-f73ac4c3a449",
          "text_id" : 888
        }
      }
    ]
  }
}

こうしたい。

'e09cd8f2-e678-7ac3-3825-26135ca4cffd',
'194dd474-4947-9010-4e80-de80a562cdab',
'b892e69e-75f2-8f42-f37c-3964ed5a1bc0',
'adbea952-96bb-964c-428d-0f7932459775',
'71c532d6-a719-c31c-bcc6-9d4fee4ca5e7',
'0856e4f5-6b91-7b27-d96b-d72bb2edff0f',
'ec6afdae-11ef-8ed3-e266-5a6a3ba04f51',
'0c501f01-b01d-091e-6f5d-f73ac4c3a449'

やりかたをメモしておく

最初にuuidを選択する。選択したら合致するものを全件選択する(ctrl + shift + G)。 選択したら行末まで移動(ctrl + shift + l) .行末から先頭までコピー。

別のところに貼り付け。でシングルクォーテーションをつける。