AIãã¡ã¤ã«ãããµã ãã¼ã«ãåãåºã試ã¿ã失æããã ããããããæ¹ãå¤ã£ãã®ã§rubyã§æ¸ãã¦ã¿ãã #!/bin/ruby -Ku require 'base64' if(File.exist?(ARGV[0])) fname = File.basename(ARGV[0]) dir = File.dirname(ARGV[0]) ext = File.extname(ARGV[0]) ext && fname.sub!(ext,'') xmpmeta = "" f =open(ARGV[0]) #p f.gets #p f.gets #p f.gets #p f.gets f.each{|line| xmpmeta = xmpmeta + line if(line.match("</x:xmpmeta>")) break end } thubm = xmpmeta.to_s.scan
{{#tags}}- {{label}}
{{/tags}}