ã¨ãã«FTOOLSãXSPECã¨é£æºããã·ã§ã«ã¹ã¯ãªãããæ¸ãã¨ãã«å¿ è¦ã«ãªã£ãrubyã®ææ³ãªã©ãã¡ã¢ã®ããã«æ¸ãã¦ããã¾ãã å ¨è¬ åä½ã§å®è¡å¯è½ãªã¹ã¯ãªããã«ãã Perlãbashã®ã¹ã¯ãªããã®å ´åã¨åæ§ã«ãè¡é ã«ä»¥ä¸ã追å ãã¾ãã #!/usr/bin/env ruby ããã¦ãã¹ã¯ãªããèªä½ã®ãã¼ãã·ã§ã³ã755(å®è¡å¯è½)ã«ãã¾ãã chmod 755 scriptfile.rb ãã¨ã¯ãã¹ã®éã£ãã¨ãã©ã«ãã«ããã®ã¹ã¯ãªãããç½®ãã°å®è¡ã§ããããã«ãªãã¾ãã ãã¡ã¤ã«é¢ä¿ ãã¡ã¤ã«/ãã£ã¬ã¯ããªãåå¨ããã確èªãã File.exsit?()ã使ãã¾ãã ä¾ï¼ if(!File.exist?("filename.dat"))then <==ãã¡ã¤ã«ããªãå ´åã¯ã¨ã©ã¼ã表示 print "file not found...\n" exit end ãã¡ã¤ã«ãã©ããããã£ã¬ã¯ã
{{#tags}}- {{label}}
{{/tags}}