urlencode.rb -d file_name > replaced_file ãã¦ã³ãã¼ã urlencode.rb ãã¾ããã¦ã³ãã¼ãã§ããªãå ´åã¯ããªã³ã¯å ããååãä»ãã¦ä¿åãã¨ããã¦ããããã¨å©ããã¾ãã ã½ã¼ã¹ #!/usr/bin/env ruby # URL ã¨ã³ã³ã¼ãï¼ãã³ã¼ã # Usage : urlencode.rb [-d] # Option : -d ãã³ã¼ã require 'cgi' require 'getopts' getopts( "d" ) if $OPT_d ARGF.each{ |line| puts CGI.unescape( line.chomp ) } else ARGF.each{ |line| puts CGI.escape( line.chomp ) } end æ¬å½ã¯ããã¡ãã£ã¨ãããã«æ¸ããã¨ããã®ã§ãããã©ãä»ã®åã§ã¯ããã
{{#tags}}- {{label}}
{{/tags}}