るりまサーチ

最速Rubyリファレンスマニュアル検索!
116件ヒット [101-116件を表示] (0.165秒)

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

キーワード

検索結果

<< < 1 2 >>

Shell::Filter#glob(pattern) -> Shell::Filter (125.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.ea...
...ch { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}

@see Dir.[]...

Shell#echo(*strings) -> Shell::Filter (25.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(fil...
...e + ".tee") >> "all.tee"
}
}
}...

Shell::Filter#echo(*strings) -> Shell::Filter (25.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(fil...
...e + ".tee") >> "all.tee"
}
}
}...
<< < 1 2 >>