るりまサーチ

最速Rubyリファレンスマニュアル検索!
270件ヒット [1-100件を表示] (0.260秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

キーワード

検索結果

<< 1 2 3 > >>

Shell#dir_stack -> [String] (29303.0)

@todo

...@todo...

Shell#record_separator -> String (29302.0)

@todo

...@todo...

Shell#dirs -> [String] (26303.0)

@todo

...@todo...

String#shellsplit -> [String] (24414.0)

Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。

...urne シェルの単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。

string
.shellsplit は、Shellwords.shellsplit(string) と等価です。

@return 分割結果の各文字列を要素とする配列を返します。
@raise Arg...
...umentError 引数の中に対でないシングルクォートまたはダブル
クォートが現れた場合に発生します。
@see Shellwords.#shellsplit...

Shell#expand_path(path) -> String (23402.0)

Fileクラスにある同名のクラスメソッドと同じです.

...Fileクラスにある同名のクラスメソッドと同じです.

@param path ファイル名を表す文字列を指定します。

@see File.expand_path...

絞り込み条件を変える

Shell#dirname(filename) -> String (23302.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@see File.dirname...

Shell#ftype(filename) -> String (23302.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@see File.ftype...

Shell#readlink(path) -> String (23302.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path シンボリックリンクを表す文字列を指定します。

@see File.readlink...

Shell#split(pathname) -> [String] (23302.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param pathname パス名を表す文字列を指定します。

@see File.split...

String#shellescape -> String (21414.0)

文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。

...文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。

string
.shellescape は、Shellwords.escape(string) と等価です。

@return エスケープされた文字列を返します。
@see Shellwords.#shellescape...

絞り込み条件を変える

Etc::Passwd#shell -> String (21403.0)

このユーザのログインシェルを返します。

このユーザのログインシェルを返します。

Shell#dir -> String (20317.0)

カレントディレクトリのパスを文字列で返します。

...カレントディレクトリのパスを文字列で返します。

使用例
r
equire 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...

Shell#getwd -> String (20317.0)

カレントディレクトリのパスを文字列で返します。

...カレントディレクトリのパスを文字列で返します。

使用例
r
equire 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...

Shell#echo(*strings) -> Shell::Filter (17420.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...Filter オブジェクトを返します.

@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
r
equire '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"
}
}
}...
<< 1 2 3 > >>