ライブラリ
- shell (522)
-
shell
/ builtin-command (54) -
shell
/ command-processor (396) -
shell
/ filter (432) -
shell
/ process-controller (48) -
shell
/ system-command (90) - shellwords (36)
クラス
- Array (12)
- Shell (522)
-
Shell
:: AppendFile (6) -
Shell
:: AppendIO (6) -
Shell
:: BuiltInCommand (12) -
Shell
:: Cat (6) -
Shell
:: CommandProcessor (396) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (432) -
Shell
:: Glob (6) -
Shell
:: ProcessController (48) -
Shell
:: SystemCommand (90) -
Shell
:: Tee (6) - String (24)
キーワード
- < (6)
- > (6)
- >> (6)
- [] (18)
- active? (12)
-
active
_ job? (6) -
add
_ schedule (6) - append (18)
- atime (18)
- basename (18)
- blockdev? (18)
- cat (18)
- cd (6)
- chardev? (18)
- chdir (6)
-
check
_ point (18) - chmod (18)
- chown (18)
- command (6)
-
command
_ processor (6) - concat (18)
- ctime (18)
- debug (6)
- debug= (6)
- debug? (6)
- delete (18)
-
dir
_ stack (6) - directory? (18)
- dirname (18)
- dirs (6)
- each (42)
- echo (18)
- executable? (18)
-
executable
_ real? (18) - exist? (18)
- exists? (18)
- file? (18)
-
find
_ system _ command (18) -
finish
_ all _ jobs (18) - flush (6)
- foreach (18)
- ftype (18)
- glob (18)
- grpowned? (18)
- identical? (18)
- input= (24)
- inspect (6)
- join (18)
- kill (12)
-
kill
_ job (6) - link (18)
- lstat (18)
- mkdir (18)
- mtime (18)
- name (6)
- notify (30)
- open (18)
- out (18)
- owned? (18)
- pipe? (18)
-
process
_ controller (6) - pushd (6)
- pushdir (6)
- readable? (18)
-
readable
_ real? (18) - readlink (18)
-
record
_ separator (6) -
record
_ separator= (6) - rename (18)
- rm (18)
- rmdir (18)
- setgid? (18)
- setuid? (18)
- sfork (6)
- shellescape (12)
- shelljoin (12)
- shellsplit (12)
- size (18)
- size? (18)
- socket? (18)
- split (18)
- start (6)
-
start
_ export (6) -
start
_ import (6) -
start
_ job (6) - stat (18)
- sticky? (18)
-
super
_ each (6) - symlink (18)
- symlink? (18)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
- terminate (6)
-
terminate
_ job (6) - test (18)
- truncate (18)
- umask (6)
- umask= (6)
- unlink (18)
- utime (18)
- verbose (6)
- verbose= (6)
- verbose? (6)
- wait? (12)
-
waiting
_ job? (6) -
world
_ readable? (18) -
world
_ writable? (18) - writable? (18)
-
writable
_ real? (18) - zero? (18)
- | (6)
検索結果
先頭5件
-
Shell
:: ProcessController # shell -> Shell (21219.0) -
@todo
...@todo... -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (17237.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
# system(command , *opts) -> Shell :: SystemCommand (17138.0) -
command を実行する.
...行する.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system... -
Shell
# glob(pattern) -> Shell :: Filter (17132.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
# cat(*files) -> Shell :: Filter (17126.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|... -
Shell
# echo(*strings) -> Shell :: Filter (17126.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...らを内容とする Filter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
f... -
Shell
# tee(file) -> Shell :: Filter (17126.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...を内容とする Filter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|... -
Shell
# command _ processor -> Shell :: CommandProcessor (17118.0) -
@todo
...@todo... -
Shell
# concat(*jobs) -> Shell :: Concat (17118.0) -
@todo
...@todo... -
Shell
# process _ controller -> Shell :: ProcessController (17118.0) -
@todo
...@todo... -
Shell
# out(dev = STDOUT , &block) -> () (17047.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...
Shell#transact を呼び出しその結果を dev に出力します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell... -
Shell
# [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (17043.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"] # => true
@see Kernel.#te... -
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (17043.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"] # => true
@see Kernel.#te... -
Shell
# mkdir(*path) -> Array (17031.0) -
Dir.mkdirと同じです。 (複数可)
...Dir.mkdirと同じです。 (複数可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>... -
Shell
# pushd(path = nil , &block) -> object (17031.0) -
カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.
...実行中のみpushdする.
@param path カレントディレクトリをpathにする。文字列で指定します。
@param block イテレータとして呼ぶ場合, ブロックを指定します。
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")... -
Shell
# pushdir(path = nil , &block) -> object (17031.0) -
カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.
...実行中のみpushdする.
@param path カレントディレクトリをpathにする。文字列で指定します。
@param block イテレータとして呼ぶ場合, ブロックを指定します。
動作例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.pushd("/tmp")... -
Shell
# kill(signal , job) -> Integer (17029.0) -
@todo
...@todo
ジョブにシグナルを送ります。
@param signal
@param job...