324件ヒット
[1-100件を表示]
(0.144秒)
種類
- インスタンスメソッド (276)
- 特異メソッド (48)
ライブラリ
- shell (324)
キーワード
- [] (6)
-
alias
_ command (6) - append (6)
- atime (6)
- basename (6)
- cat (6)
- cd (6)
- chardev? (6)
- chdir (6)
- chmod (6)
- chown (6)
- ctime (6)
-
def
_ system _ command (6) -
default
_ record _ separator (6) - delete (6)
-
dir
_ stack (6) - dirname (6)
- dirs (6)
- echo (6)
- executable? (6)
-
executable
_ real? (6) -
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- glob (6)
- identical? (6)
-
install
_ system _ commands (6) - kill (6)
- lstat (6)
- mkdir (6)
- mtime (6)
- new (6)
- notify (6)
- open (6)
- pushd (6)
- pushdir (6)
- readable? (6)
-
readable
_ real? (6) - readlink (6)
-
record
_ separator (6) - rm (6)
- rmdir (6)
- split (6)
- stat (6)
- tee (6)
- test (6)
-
unalias
_ command (6) - unlink (6)
- utime (6)
-
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6)
検索結果
先頭5件
-
Shell
. alias _ command(alias , command , *opts) { . . . } -> self (12407.0) -
コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
...す。
コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.
@param alias エイリアスの名前を文字列で指定します.
@param command コマンド名を文字列で指定します.
@param opts command で指定したコマンドのオプシ......を指定します.
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}... -
Shell
. unalias _ command(alias) -> () (12407.0) -
commandのaliasを削除します.
...mandのaliasを削除します.
@param alias 削除したいエイリアスの名前を文字列で指定します。
@raise NameError alias で指定したコマンドが無い場合に発生します。
使用例: ls -la | sort -k 5 のような例。
require 'shell'
Shell.def_system_comman......d("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}
Shell.unalias_command("lsla")
begin
Shell.unalias_command("lsla")
rescue NameError => err
puts err
en... -
Shell
# atime(filename) -> Time (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime... -
Shell
# dirname(filename) -> String (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.dirname... -
Shell
# find _ system _ command(command) (12301.0) -
@todo
@todo -
Shell
# readlink(path) -> String (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
# dir _ stack -> [String] (12201.0) -
@todo
@todo -
Shell
# identical? (12201.0) -
@todo
@todo -
Shell
# world _ writable? (12201.0) -
@todo
@todo -
Shell
# writable?(file) -> bool (12201.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable?... -
Shell
# writable _ real?(file) -> bool (12201.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real?... -
Shell
. install _ system _ commands(pre = "sys _ ") -> () (12201.0) -
system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.
...system_path上にある全ての実行可能ファイルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.
@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。
使用例: ls -l | head -n 5......のような例。
require 'shell'
Shell.install_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}... -
Shell
# finish _ all _ jobs (9201.0) -
@todo
@todo -
Shell
# dirs -> [String] (9101.0) -
@todo
@todo -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6501.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
# lstat(filename) -> File :: Stat (6401.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
# stat(filename) -> File :: Stat (6401.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat...