るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils cp_r
  5. fileutils rm_r

キーワード

検索結果

<< 1 2 > >>

Shell::Filter#each(rs = nil) -> () (21209.0)

フィルタの一行ずつをblockに渡します。

...行ずつをblockに渡します。

@param rs レコードセパレーターを表す文字列を指定します。
nil ならば、Shell.record_separatorの値が使用されます。

使用例
r
equire 'shell'
sh = Shell.new
sh.cat("/etc/passwd").each { |line|
puts line
}...

Shell::Cat#each(rs = nil) {|line| ... } (18203.0)

@todo

@todo

Shell::Concat#each(rs = nil) {|job| ... } (18203.0)

@todo

@todo

Shell::Echo#each(rs = nil) {|str| ... } (18203.0)

@todo

@todo

Shell::Glob#each(rs = nil) {|file| ... } (18203.0)

@todo

@todo

絞り込み条件を変える

Shell::SystemCommand#each(rs = nil) {|line| ... } (18203.0)

@todo

...@todo

@param rs...

Shell::Tee#each(rs = nil) {|line| ... } (18203.0)

@todo

@todo

Shell::Void#each(rs = nil) { ... } -> nil (18203.0)

何もしません。

何もしません。

Shell::SystemCommand#super_each -> () (12209.0)

@todo

...@todo

Shell
::Filter#each です。...

Shell#foreach(path = nil, &block) -> () (12203.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...イルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
r
equire 'shell'
Shell
.verbose = false
sh = Shell.new
sh.foreach("/tmp"){|f|
puts f...

絞り込み条件を変える

Shell::CommandProcessor#foreach(path = nil, &block) -> () (12202.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...イルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
r
equire 'shell'
Shell
.verbose = false
sh = Shell.new
sh.foreach("/tmp"){|f|
puts f...

Shell::Filter#foreach(path = nil, &block) -> () (12202.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...イルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
r
equire 'shell'
Shell
.verbose = false
sh = Shell.new
sh.foreach("/tmp"){|f|
puts f...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (3114.0)

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

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

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

動作例
r
equire '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 (3114.0)

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

...内容とする Filter オブジェクトを返します.

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

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

Shell::CommandProcessor#glob(pattern) -> Shell::Filter (3114.0)

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

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

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

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

@see Dir.[]...

絞り込み条件を変える

Shell::CommandProcessor#tee(file) -> Shell::Filter (3114.0)

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

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

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

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

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

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

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

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

動作例
r
equire '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"
}
}
}...
<< 1 2 > >>