24件ヒット
[1-24件を表示]
(0.048秒)
別のキーワード
検索結果
先頭4件
-
Shell
:: CommandProcessor # glob(pattern) -> Shell :: Filter (29119.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...tern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |fil... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (11012.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ンド 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
:: CommandProcessor # echo(*strings) -> Shell :: Filter (11012.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ルコマンド 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(file + ".tee") >> "all.tee... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (11012.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...マンド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.te...