1件ヒット
[1-1件を表示]
(0.009秒)
別のキーワード
クラス
-
Shell
:: Filter (1)
検索結果
-
Shell
:: Filter # glob(pattern) -> Shell :: Filter (331.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする Filter オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
...