168件ヒット
[1-100件を表示]
(0.010秒)
種類
- インスタンスメソッド (144)
- 特異メソッド (12)
- クラス (12)
クラス
- Shell (36)
-
Shell
:: Cat (12) -
Shell
:: CommandProcessor (36) -
Shell
:: Concat (12) -
Shell
:: Filter (60)
検索結果
先頭5件
-
Shell
# cat(*files) -> Shell :: Filter (18115.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
....
@param files シェルコマンド 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) |... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (18114.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
....
@param files シェルコマンド 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) |... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (18114.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
....
@param files シェルコマンド 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) |... -
Shell
# concat(*jobs) -> Shell :: Concat (6202.0) -
@todo
@todo -
Shell
:: CommandProcessor # concat(*jobs) -> Shell :: Concat (6201.0) -
@todo
@todo -
Shell
:: Filter # concat(*jobs) -> Shell :: Concat (6201.0) -
@todo
@todo -
Shell
# truncate(path , length) -> 0 (6102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (6101.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Filter # truncate(path , length) -> 0 (6101.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Cat (6001.0) -
-
Shell
:: Concat (6001.0) -
-
Shell
:: Cat # each(rs = nil) {|line| . . . } (3001.0) -
@todo
@todo -
Shell
:: Cat . new(sh , *filenames) (3001.0) -
@todo
@todo -
Shell
:: Concat # each(rs = nil) {|job| . . . } (3001.0) -
@todo
@todo -
Shell
:: Concat . new(sh , *jobs) (3001.0) -
@todo
@todo -
Shell
:: Filter # |(filter) -> object (13.0) -
パイプ結合を filter に対して行います。
...m filter Shell::Filter オブジェクトを指定します。
@return filter を返します。
使用例
require 'shell'
Shell.def_system_command("tail")
Shell.def_system_command("head")
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
i = 1
while i <= (cat("/etc/p......asswd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/passwd") | head("-n #{i}") | tail("-n 1")).to_s
i += 1
end
}... -
Shell
# echo(*strings) -> Shell :: Filter (8.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"
}
}...