- すべて(1038)
- 2.1.0(173)
- 2.2.0(173)
- 2.3.0(173)
- 2.4.0(173)
- 2.5.0(173)
- 2.6.0(173)
1038件ヒット
[1-100件を表示]
(0.077秒)
クラス
- Shell (318)
-
Shell
:: CommandProcessor (276) -
Shell
:: Filter (378) -
Shell
:: ProcessController (42) -
Shell
:: SystemCommand (24)
キーワード
- < (6)
- > (6)
- >> (6)
- [] (18)
-
active
_ job? (6) -
add
_ schedule (6) - append (18)
- atime (18)
- basename (18)
- blockdev? (6)
- cat (18)
- cd (6)
- chardev? (6)
- chdir (6)
- chmod (18)
- chown (18)
- ctime (18)
- delete (18)
- directory? (18)
- dirname (18)
- each (12)
- echo (18)
- executable? (18)
-
executable
_ real? (18) - exist? (18)
- exists? (18)
- file? (6)
- foreach (18)
- ftype (18)
- glob (18)
- grpowned? (6)
- input= (6)
- join (18)
- kill (12)
-
kill
_ job (6) - link (6)
- lstat (18)
- mkdir (18)
- mtime (18)
- notify (12)
- open (18)
- out (18)
- owned? (6)
- pipe? (6)
- pushd (6)
- pushdir (6)
- readable? (6)
-
readable
_ real? (6) - readlink (18)
- rename (18)
- rm (18)
- rmdir (18)
- setgid? (18)
- setuid? (18)
- sfork (6)
- size (18)
- size? (18)
- socket? (18)
- split (18)
-
start
_ job (6) - stat (18)
- sticky? (18)
- symlink (6)
- symlink? (6)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
-
terminate
_ job (6) - test (18)
- truncate (18)
- unlink (18)
- utime (18)
-
waiting
_ job? (6) - writable? (18)
-
writable
_ real? (18) - zero? (6)
- | (6)
検索結果
先頭5件
-
Shell
:: Filter # system(command , *opts) -> Shell :: SystemCommand (9214.0) -
command を実行する.
...る.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_comma......nd("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
:: Filter # delete(*filename) -> Integer (9208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete... -
Shell
:: Filter # tee(file) -> Shell :: Filter (9208.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
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
:: ProcessController # terminate _ job(command) (9208.0) -
指定されたコマンドを終了します。
...指定されたコマンドを終了します。
@param command コマンドを指定します。... -
Shell
:: Filter # truncate(path , length) -> 0 (9114.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
# utime(atime , mtime , *filename) -> Integer (6321.0) -
File クラスにある同名のクラスメソッドと同じです.
...@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.ut... -
Shell
:: CommandProcessor # utime(atime , mtime , *filename) -> Integer (6320.0) -
File クラスにある同名のクラスメソッドと同じです.
...@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.ut... -
Shell
:: Filter # utime(atime , mtime , *filename) -> Integer (6320.0) -
File クラスにある同名のクラスメソッドと同じです.
...@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.ut... -
Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (6220.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...el.#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param fil......@param file2 文字列でファイルへのパスを指定します。
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"] # => true
@see Kernel.#test, FileTest... -
Shell
# system(command , *opts) -> Shell :: SystemCommand (6215.0) -
command を実行する.
...る.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_comma......nd("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (6214.0) -
command を実行する.
...る.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_comma......nd("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
# atime(filename) -> Time (6209.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime... -
Shell
# ctime(filename) -> Time (6209.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime... -
Shell
# delete(*filename) -> Integer (6209.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete... -
Shell
# expand _ path(path) -> String (6209.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
# lstat(filename) -> File :: Stat (6209.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
# mtime(filename) -> Time (6209.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime...