1件ヒット
[1-1件を表示]
(0.133秒)
ライブラリ
-
shell
/ filter (1)
クラス
-
Shell
:: Filter (1)
検索結果
-
Shell
:: Filter # to _ s -> String (54646.0) -
実行結果を文字列で返します。
実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}