180件ヒット
[1-100件を表示]
(0.018秒)
種類
- インスタンスメソッド (144)
- 特異メソッド (36)
クラス
- Shell (60)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (30) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (36) -
Shell
:: Glob (6) -
Shell
:: ProcessController (6) -
Shell
:: SystemCommand (12) -
Shell
:: Tee (6) -
Shell
:: Void (6)
キーワード
-
alias
_ command (6) - cat (18)
-
def
_ system _ command (6) -
each
_ active _ object (6) - echo (18)
- foreach (18)
- glob (18)
-
install
_ system _ commands (6) -
super
_ each (6) - tee (18)
-
unalias
_ command (6) -
undef
_ system _ command (6)
検索結果
先頭5件
-
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"
}
}
}...