270件ヒット
[1-100件を表示]
(0.204秒)
ライブラリ
- etc (12)
- shell (90)
-
shell
/ command-processor (48) -
shell
/ filter (60) -
shell
/ system-command (24) - shellwords (36)
クラス
- Array (12)
-
Etc
:: Passwd (12) - Shell (90)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (60) -
Shell
:: SystemCommand (24) - String (24)
検索結果
先頭5件
-
Shell
# expand _ path(path) -> String (23302.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
# dir _ stack -> [String] (23203.0) -
@todo
...@todo... -
Shell
# ftype(filename) -> String (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype... -
Shell
# record _ separator -> String (23202.0) -
@todo
...@todo... -
Shell
# split(pathname) -> [String] (23202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
String
# shellsplit -> [String] (21314.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...分割を行い、
単語 (文字列) の配列を返します。
string.shellsplit は、Shellwords.shellsplit(string) と等価です。
@return 分割結果の各文字列を要素とする配列を返します。
@raise ArgumentError 引数の中に対でないシングルクォートまたは......ダブル
クォートが現れた場合に発生します。
@see Shellwords.#shellsplit... -
Etc
:: Passwd # shell -> String (21303.0) -
このユーザのログインシェルを返します。
このユーザのログインシェルを返します。 -
Shell
# getwd -> String (20217.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# dirs -> [String] (20203.0) -
@todo
...@todo... -
String
# shellescape -> String (18314.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
string.shellescape は、Shellwords.escape(string) と等価です。
@return エスケープされた文字列を返します。
@see Shellwords.#shellescape... -
Shell
# echo(*strings) -> Shell :: Filter (17320.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(f......ile).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
# cwd -> String (17217.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# dir -> String (17217.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# pwd -> String (17217.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...