354件ヒット
[1-100件を表示]
(0.167秒)
ライブラリ
- etc (12)
- shell (90)
-
shell
/ command-processor (126) -
shell
/ filter (60) -
shell
/ process-controller (30) -
shell
/ system-command (12) - shellwords (24)
クラス
-
Etc
:: Passwd (12) - Shell (90)
-
Shell
:: CommandProcessor (126) -
Shell
:: Filter (60) -
Shell
:: ProcessController (30) -
Shell
:: SystemCommand (12) - String (24)
キーワード
- [] (18)
- basename (6)
- chmod (6)
- chown (18)
- cwd (6)
- delete (6)
- dir (6)
- dirname (6)
- echo (6)
- ftype (18)
- getwd (6)
- glob (18)
- grpowned? (18)
- inspect (6)
- join (6)
-
kill
_ job (6) - notify (12)
- pwd (6)
- readlink (18)
-
record
_ separator (6) - rm (6)
- setgid? (6)
- sfork (6)
- shellescape (12)
- shellsplit (12)
- size (6)
- size? (6)
- split (18)
- test (18)
- truncate (18)
- utime (6)
-
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6)
検索結果
先頭5件
-
Shell
# expand _ path(path) -> String (29401.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
# grpowned?(file) -> bool (29201.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned?... -
Shell
# glob(pattern) -> Shell :: Filter (23320.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ます.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、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"
}
}
}
@see Dir.[]... -
Shell
# ftype(filename) -> String (23201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype... -
Shell
# record _ separator -> String (23201.0) -
@todo
@todo -
Shell
# split(pathname) -> [String] (23201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Etc
:: Passwd # shell -> String (21202.0) -
このユーザのログインシェルを返します。
このユーザのログインシェルを返します。 -
Shell
# pwd -> String (20219.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# getwd -> String (20119.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# chown(owner , group , *filename) -> Integer (17201.0) -
File クラスにある同名のクラスメソッドと同じです.
...にある同名のクラスメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil また......は -1 を指定することで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown... -
Shell
# readlink(path) -> String (17201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
# truncate(path , length) -> 0 (17201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
# [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (17149.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1 文字列でファイルへのパスを指定します。
@para......指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => tru... -
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (17149.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1 文字列でファイルへのパスを指定します。
@para......指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => tru... -
Shell
# cwd -> String (17119.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# dir -> String (17119.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...