るりまサーチ

最速Rubyリファレンスマニュアル検索!
110件ヒット [101-110件を表示] (0.039秒)
トップページ > クエリ:@[x] > クエリ:tee[x]

別のキーワード

  1. shell tee
  2. tee new
  3. filter tee
  4. tee each
  5. shell/filter tee

検索結果

<< < 1 2 >>

Shell::Filter#cat(*files) -> Shell::Filter (24.0)

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

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

@
param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
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(file + ".tee") >> "all.tee"
}
}
}...

Shell::Filter#echo(*strings) -> Shell::Filter (24.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(fi...
...le + ".tee") >> "all.tee"
}
}
}...
<< < 1 2 >>