Rubyã®åå¼·ã«Rubyã§æåãã³ãã®Linuxã³ãã³ããã¡ãåå®è£ ãã¦ã¿ããã¨ãããã¾ãã å°ããã¤è¿½è¨ããå½¢ã«ã§ããã°ã¨æã£ã¦ãã¾ããããããå®è£ æ¹æ³ãªã©ããã¾ããããã²ãææããã ããã¨å¹¸ãã§ãã Rubyã§Linuxã³ãã³ãã®åå®è£ (lsç·¨) - Qiita Rubyã§Linuxã³ãã³ãã®åå®è£ (treeç·¨) - Qiita #! /usr/bin/env ruby # # ls: å¼æ°ãªãã®å ´åç¾å¨ã®ãã£ã¬ã¯ããªã®ç¶æ ãè¿ãã # å¼æ°ããã®å ´åãã®ãã£ã¬ã¯ããªã®ç¶æ ãè¿ãã target = ARGV[0] || Dir.pwd entries = Dir::entries(target) entries.select!{|entry| entry[0] != '.'} entries.map! do |entry| if File::directory?(File.join(
{{#tags}}- {{label}}
{{/tags}}