144件ヒット
[1-100件を表示]
(0.123秒)
ライブラリ
- shell (30)
-
shell
/ builtin-command (36) -
shell
/ command-processor (30) -
shell
/ filter (36) -
shell
/ system-command (12)
クラス
- Shell (30)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (30) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (36) -
Shell
:: Glob (6) -
Shell
:: SystemCommand (12) -
Shell
:: Tee (6) -
Shell
:: Void (6)
検索結果
先頭5件
-
Shell
# foreach(path = nil , &block) -> () (23119.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 # each(rs = nil) -> () (21126.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| . . . } (21102.0) -
@todo
@todo -
Shell
:: Concat # each(rs = nil) {|job| . . . } (21102.0) -
@todo
@todo -
Shell
:: Echo # each(rs = nil) {|str| . . . } (21102.0) -
@todo
@todo -
Shell
:: Glob # each(rs = nil) {|file| . . . } (21102.0) -
@todo
@todo -
Shell
:: SystemCommand # each(rs = nil) {|line| . . . } (21102.0) -
@todo
@todo
@param rs -
Shell
:: Tee # each(rs = nil) {|line| . . . } (21102.0) -
@todo
@todo -
Shell
:: Void # each(rs = nil) { . . . } -> nil (21102.0) -
何もしません。
何もしません。 -
Shell
# cat(*files) -> Shell :: Filter (17132.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 (17132.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 (17132.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 (17132.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
:: CommandProcessor # foreach(path = nil , &block) -> () (9119.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) -> () (9119.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
:: SystemCommand # super _ each -> () (9114.0) -
@todo
...@todo
Shell::Filter#each です。... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (3132.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"
}
}
}...