576件ヒット
[1-100件を表示]
(0.068秒)
別のキーワード
ライブラリ
- etc (12)
- shell (198)
-
shell
/ builtin-command (6) -
shell
/ command-processor (126) -
shell
/ filter (138) -
shell
/ process-controller (30) -
shell
/ system-command (30) - shellwords (36)
クラス
- Array (12)
-
Etc
:: Passwd (12) - Shell (198)
-
Shell
:: CommandProcessor (126) -
Shell
:: Filter (138) -
Shell
:: Glob (6) -
Shell
:: ProcessController (30) -
Shell
:: SystemCommand (30) - String (24)
キーワード
- [] (18)
- basename (18)
- chmod (18)
- chown (18)
- command (6)
- cwd (6)
- debug (6)
- debug= (6)
- debug? (6)
- delete (18)
- dir (6)
-
dir
_ stack (6) - dirname (18)
- dirs (6)
- each (6)
- echo (18)
- ftype (18)
- getwd (6)
- glob (18)
- grpowned? (18)
- inspect (6)
- join (18)
- kill (12)
-
kill
_ job (6) - name (6)
- notify (12)
- pwd (6)
- readlink (18)
-
record
_ separator (6) - rm (18)
- setgid? (18)
- sfork (6)
- shellescape (12)
- shelljoin (12)
- shellsplit (12)
- size (18)
- size? (18)
- split (18)
- test (18)
-
to
_ a (6) -
to
_ s (6) - truncate (18)
- utime (18)
- verbose= (6)
-
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6)
検索結果
先頭5件
-
Shell
# glob(pattern) -> Shell :: Filter (23220.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...attern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |f... -
Shell
# debug -> bool | Integer (23101.0) -
@todo
@todo -
Shell
# debug=(flag) (23101.0) -
@todo
@todo -
Shell
# debug? -> bool | Integer (23101.0) -
@todo
@todo -
Shell
# grpowned?(file) -> bool (23101.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned?... -
Shell
# setgid?(file) -> bool (23101.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setgid?... -
Shell
# getwd -> String (20113.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Etc
:: Passwd # shell -> String (18202.0) -
このユーザのログインシェルを返します。
このユーザのログインシェルを返します。 -
Shell
# echo(*strings) -> Shell :: Filter (17220.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...Filter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(... -
Shell
# [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (17119.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...イルへのパスを指定します。
@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", "... -
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (17119.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...イルへのパスを指定します。
@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", "... -
Shell
# cwd -> String (17113.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# dir -> String (17113.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# pwd -> String (17113.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# basename(filename , suffix = "") -> String (17101.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename -
Shell
# chmod(mode , *filename) -> Integer (17101.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod