84件ヒット
[1-84件を表示]
(0.104秒)
クラス
- Shell (24)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (30)
検索結果
先頭5件
-
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (12513.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...る 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) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (12513.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...る 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) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: CommandProcessor # concat(*jobs) -> Shell :: Concat (12501.0) -
@todo
@todo -
Shell
:: Filter # concat(*jobs) -> Shell :: Concat (12501.0) -
@todo
@todo -
Shell
# cat(*files) -> Shell :: Filter (9514.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...る 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) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
# mkdir(*path) -> Array (9402.0) -
Dir.mkdirと同じです。 (複数可)
...Dir.mkdirと同じです。 (複数可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>......["foo"]
rescue => err
puts err
end... -
Shell
# rmdir(*path) -> () (9402.0) -
Dir.rmdirと同じです。 (複数可)
...Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。... -
Shell
:: CommandProcessor # mkdir(*path) -> Array (9401.0) -
Dir.mkdirと同じです。 (複数可)
...Dir.mkdirと同じです。 (複数可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>......["foo"]
rescue => err
puts err
end... -
Shell
:: CommandProcessor # rmdir(*path) -> () (9401.0) -
Dir.rmdirと同じです。 (複数可)
...Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。... -
Shell
:: Filter # mkdir(*path) -> Array (9401.0) -
Dir.mkdirと同じです。 (複数可)
...Dir.mkdirと同じです。 (複数可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>......["foo"]
rescue => err
puts err
end... -
Shell
:: Filter # rmdir(*path) -> () (9401.0) -
Dir.rmdirと同じです。 (複数可)
...Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。... -
Shell
:: CommandProcessor # utime(atime , mtime , *filename) -> Integer (6502.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起......算時からの経過秒数を数値で指定します。
@see File.utime... -
Shell
:: Filter # utime(atime , mtime , *filename) -> Integer (6502.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起......算時からの経過秒数を数値で指定します。
@see File.utime... -
Shell
# utime(atime , mtime , *filename) -> Integer (3503.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起......算時からの経過秒数を数値で指定します。
@see File.utime...