{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc4se.hatenablog.com%2Fentry%2F2015%2F11%2F06%2F203520\" title=\"Subversion\u306elog\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u691c\u7d22\u3059\u308b svn-grep - c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606","type":"rich","height":"190","provider_name":"Hatena Blog","author_name":"Kureduki_Maari","title":"Subversion\u306elog\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u691c\u7d22\u3059\u308b svn-grep","width":"100%","url":"https://c4se.hatenablog.com/entry/2015/11/06/203520","categories":["Programming","sh"],"description":"git\u3067\u3042\u308c\u3070 git log --grep \u306a\u306b\u304b \u3067\u3067\u304d\u308b\u3002SVN\u306b\u306f\u4f55\u3082\u7528\u610f\u3055\u308c\u3066\u3090\u306a\u3044\u3002 \u4ee5\u4e0b\u306e\u95a2\u6570\u3092 .bashrc \u306b\u66f8\u304f\u3002 function svn-grep() { TMP_ID=$(uuid -v4) cat << RUBY > /tmp/$TMP_ID require 'nokogiri' log = Nokogiri::XML STDIN.read logentries = log.css('logentry').select{|logentry| logentry.css('msg').first.content.include?(ARGV[0]) } system \"\u2026","image_url":null,"provider_url":"https://hatena.blog","blog_url":"https://c4se.hatenablog.com/","version":"1.0","author_url":"https://blog.hatena.ne.jp/Kureduki_Maari/","published":"2015-11-06 20:35:20"}