るりまサーチ

最速Rubyリファレンスマニュアル検索!
510件ヒット [1-100件を表示] (0.149秒)
トップページ > クエリ:sh[x] > クエリ:shell/command-processor[x]

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document clone
  4. rexml/document to_s
  5. rexml/document node_type

検索結果

<< 1 2 3 ... > >>

shell/command-processor (64000.0)

Shell で使用可能なコマンドの大半を定義するライブラリです。

...Shell で使用可能なコマンドの大半を定義するライブラリです。...

Shell::CommandProcessor#rehash -> {} (17100.0)

登録されているシステムコマンドの情報をクリアします。 通常、使うことはありません。

登録されているシステムコマンドの情報をクリアします。
通常、使うことはありません。

Shell::CommandProcessor.add_delegate_command_to_shell(id) (17100.0)

@todo

...@todo

Sh
ell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。

@param id メソッド名を指定します。...

Shell::CommandProcessor#finish_all_jobs (14100.0)

@todo

@todo

Shell::CommandProcessor#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (11200.0)

@todo

...@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。...

絞り込み条件を変える

Shell::CommandProcessor#system(command, *opts) -> Shell::SystemCommand (11124.0)

command を実行する.

...で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new

print sh.system("ls", "-l")
Sh
ell.def_system_command("head")
sh
.system("ls", "-l") | sh.head("-n 3") > STDOUT...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (11112.0)

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

...ram files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(fi...

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (11112.0)

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

....

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

動作例
require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(fi...

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

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

...
パターンの書式については、Dir.[] を参照してください。

動作例
require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file...

Shell::CommandProcessor#tee(file) -> Shell::Filter (11112.0)

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

...param file シェルコマンドtee に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(fi...

絞り込み条件を変える

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (11100.0)

@todo

@todo

Shell::CommandProcessor.alias_map -> Hash (11100.0)

Shell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。

...
Sh
ell::CommandProcessor.alias_command で定義したエイリアスの一覧を返します。...

Shell::CommandProcessor.new(shell) (11100.0)

@todo

@todo

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (11042.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (11042.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...定します。

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
begin
sh
.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true...

絞り込み条件を変える

Shell::CommandProcessor#transact { ... } -> object (11024.0)

ブロック中で shell を self として実行します。

...ブロック中で shell を self として実行します。

例:

require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}...

Shell::CommandProcessor#foreach(path = nil, &block) -> () (11012.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...なら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
sh
.foreach("/tmp"){|f|
puts f
}...
<< 1 2 3 ... > >>