るりまサーチ

最速Rubyリファレンスマニュアル検索!
40件ヒット [1-40件を表示] (0.188秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:pattern[x] > ライブラリ:shell[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

モジュール

キーワード

検索結果

Shell::CommandProcessor#glob(pattern) -> Shell::Filter (3308.0)

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

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

@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
r
equire 'shell'
Shell
.def_system_command("head")
sh = Shell.ne...
...w
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}

@see Dir.[]...

Shell::Filter#glob(pattern) -> Shell::Filter (3308.0)

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

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

@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
r
equire 'shell'
Shell
.def_system_command("head")
sh = Shell.ne...
...w
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}

@see Dir.[]...

Shellwords.#shellescape(str) -> String (3213.0)

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

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

@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返します。

例:
r
equire 'shellwords'

pattern
= 'Jan 1...
...5'
puts "grep #{Shellwords.shellescape(pattern)} file"
# => grep Jan\ 15 file...

Shellwords.#shelljoin(array) -> String (3213.0)

配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。

...して、Bourne シェルのコマンドライン中で安全に
使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド
ライン文字列を生成します。

個々の配列要素に対するエスケープには、Shellwords.#shellescape と...
...ram array エスケープ対象の文字列を要素とする配列を指定します。
@return エスケープ結果を連結した文字列を返します。

例:
r
equire 'shellwords'

pattern
= 'Jan 15'
file = 'file name with spaces'
puts Shellwords.shelljoin(['grep', patter...
...n, file])
# => grep Jan\ 15 file\ name\ with\ spaces...

Shell#glob(pattern) -> Shell::Filter (309.0)

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

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

@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
r
equire 'shell'
Shell
.def_system_command("head")
sh = Shell.ne...
...w
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}

@see Dir.[]...

絞り込み条件を変える