るりまサーチ

最速Rubyリファレンスマニュアル検索!
180件ヒット [1-100件を表示] (0.018秒)
トップページ > クエリ:each[x] > ライブラリ:shell[x]

別のキーワード

  1. _builtin each
  2. _builtin each_line
  3. prime each
  4. tsort tsort_each

検索結果

<< 1 2 > >>

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

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

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

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

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

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

@todo

@todo

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

@todo

@todo

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

@todo

@todo

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

@todo

@todo

絞り込み条件を変える

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

@todo

@todo

@param rs

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

@todo

@todo

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

何もしません。

何もしません。

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

@todo

...@todo

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

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

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

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

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

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

絞り込み条件を変える

Shell::ProcessController.each_active_object {|ref| ... } -> () (6102.0)

@todo

@todo

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

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

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

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

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

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

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

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

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

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

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

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

...るファイル名を文字列で指定します。

動作例
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#echo(*strings) -> Shell::Filter (14.0)

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

...に与える引数を文字列で指定します。

動作例
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 (14.0)

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

...ついては、Dir.[] を参照してください。

動作例
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#tee(file) -> Shell::Filter (14.0)

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

...るファイル名を文字列で指定します。

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