るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.077秒)
トップページ > クエリ:t[x] > クエリ:@[x] > 種類:インスタンスメソッド[x] > クラス:Shell[x] > ライブラリ:shell[x] > クエリ:glob[x] > クエリ:echo[x] > クエリ:cat[x]

別のキーワード

  1. pathname glob
  2. dir glob
  3. _builtin glob
  4. shell glob
  5. glob pathname

検索結果

Shell#cat(*files) -> Shell::Filter (24235.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#glob(pattern) -> Shell::Filter (18241.0)

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

...Filter オブジェクトを返します.

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

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

@
see Dir.[]...

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

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

...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
(f...
...ile).each { |l|
echo
(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

Shell#tee(file) -> Shell::Filter (6228.0)

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

...lter オブジェクトを返します.

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

動作例
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"
}
}
}...