るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l

キーワード

検索結果

<< 1 2 3 > >>

Shell::ProcessController#shell -> Shell (36607.0)

@todo

@todo

Shell::ProcessController#kill_job(signal, command) -> Integer (36307.0)

指定されたコマンドにシグナルを送ります。

指定されたコマンドにシグナルを送ります。

@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。

@param command コマンドを指定します。

@see Process.#kill

Shell::ProcessController#wait_all_jobs_execution -> () (36307.0)

全てのジョブの実行が終わるまで待ちます。

全てのジョブの実行が終わるまで待ちます。

Shell#process_controller -> Shell::ProcessController (27910.0)

@todo

@todo

Shell#kill(signal, job) -> Integer (27310.0)

@todo

@todo

ジョブにシグナルを送ります。

@param signal

@param job

絞り込み条件を変える

Shell::ProcessController#add_schedule(command) -> () (27307.0)

指定されたコマンドを待機ジョブとして登録します。 ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。

指定されたコマンドを待機ジョブとして登録します。
ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。

@param command コマンドを指定します。

Shell::SystemCommand#kill(signal) -> Integer (27307.0)

自身のプロセスにシグナルを送ります。

自身のプロセスにシグナルを送ります。

@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。

@see Process.#kill

Shell#delete(*filename) -> Integer (18610.0)

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

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

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

@see File.delete

Shell#executable?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#executable?

Shell#executable_real?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#executable_real?

絞り込み条件を変える

Shell#file?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#file?

Shell#readable?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#readable?

Shell#readable_real?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#readable_real?

Shell#writable?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#writable?

Shell#writable_real?(file) -> bool (18610.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#writable_real?

絞り込み条件を変える

Shell::CommandProcessor#delete(*filename) -> Integer (18607.0)

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

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

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

@see File.delete

Shell::CommandProcessor#executable?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#executable?

Shell::CommandProcessor#executable_real?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#executable_real?

Shell::CommandProcessor#file?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#file?

Shell::CommandProcessor#readable?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#readable?

絞り込み条件を変える

Shell::CommandProcessor#readable_real?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#readable_real?

Shell::CommandProcessor#writable?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#writable?

Shell::CommandProcessor#writable_real?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#writable_real?

Shell::Filter#delete(*filename) -> Integer (18607.0)

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

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

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

@see File.delete

Shell::Filter#executable?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#executable?

絞り込み条件を変える

Shell::Filter#executable_real?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#executable_real?

Shell::Filter#file?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#file?

Shell::Filter#readable?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#readable?

Shell::Filter#readable_real?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#readable_real?

Shell::Filter#writable?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#writable?

絞り込み条件を変える

Shell::Filter#writable_real?(file) -> bool (18607.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#writable_real?

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

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

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

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

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

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

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

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

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

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

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

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

Shell#blockdev?(file) -> bool (18310.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#blockdev?

絞り込み条件を変える

Shell#finish_all_jobs (18310.0)

@todo

@todo

Shell#identical? (18310.0)

@todo

@todo

Shell#link(old, new) -> 0 (18310.0)

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

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

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

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

@see File.link

Shell#lstat(filename) -> File::Stat (18310.0)

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

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

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

@see File.lstat

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

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

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

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

@see File.readlink

絞り込み条件を変える

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

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

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

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

@see File.split

Shell#symlink(old, new) -> 0 (18310.0)

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

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

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

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

@see File.symlink

Shell#symlink?(file) -> bool (18310.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#symlink?

Shell#unlink(path) -> self (18310.0)

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

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

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink

Shell#world_readable? (18310.0)

@todo

@todo

絞り込み条件を変える

Shell#world_writable? (18310.0)

@todo

@todo

Array#shelljoin -> String (18307.0)

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

...スケープを適用し、空白文字を介してそれらを連結したコマンド
ライン文字列を生成します。

array.shelljoin は、Shellwords.shelljoin(array) と等価です。

@return エスケープ結果を連結した文字列を返します。
@see Shellwords.#shelljoin...

Shell::CommandProcessor#blockdev?(file) -> bool (18307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#blockdev?

Shell::CommandProcessor#finish_all_jobs (18307.0)

@todo

@todo

Shell::CommandProcessor#identical? (18307.0)

@todo

@todo

絞り込み条件を変える

Shell::CommandProcessor#link(old, new) -> 0 (18307.0)

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

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

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

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

@see File.link

Shell::CommandProcessor#lstat(filename) -> File::Stat (18307.0)

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

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

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

@see File.lstat

Shell::CommandProcessor#readlink(path) -> String (18307.0)

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

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

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

@see File.readlink

Shell::CommandProcessor#split(pathname) -> [String] (18307.0)

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

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

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

@see File.split

Shell::CommandProcessor#symlink(old, new) -> 0 (18307.0)

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

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

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

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

@see File.symlink

絞り込み条件を変える

Shell::CommandProcessor#symlink?(file) -> bool (18307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#symlink?

Shell::CommandProcessor#unlink(path) -> self (18307.0)

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

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

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink

Shell::CommandProcessor#world_readable? (18307.0)

@todo

@todo

Shell::CommandProcessor#world_writable? (18307.0)

@todo

@todo

Shell::Filter#blockdev?(file) -> bool (18307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#blockdev?

絞り込み条件を変える

Shell::Filter#finish_all_jobs (18307.0)

@todo

@todo

Shell::Filter#identical? (18307.0)

@todo

@todo

Shell::Filter#link(old, new) -> 0 (18307.0)

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

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

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

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

@see File.link

Shell::Filter#lstat(filename) -> File::Stat (18307.0)

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

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

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

@see File.lstat

Shell::Filter#readlink(path) -> String (18307.0)

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

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

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

@see File.readlink

絞り込み条件を変える

Shell::Filter#split(pathname) -> [String] (18307.0)

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

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

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

@see File.split

Shell::Filter#symlink(old, new) -> 0 (18307.0)

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

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

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

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

@see File.symlink

Shell::Filter#symlink?(file) -> bool (18307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

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

@see FileTest.#symlink?

Shell::Filter#unlink(path) -> self (18307.0)

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

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

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink

Shell::Filter#world_readable? (18307.0)

@todo

@todo

絞り込み条件を変える

Shell::Filter#world_writable? (18307.0)

@todo

@todo

Shell::ProcessController#active_job?(job) -> bool (18307.0)

指定されたジョブが実行中である場合は真を返します。 そうでない場合は偽を返します。

指定されたジョブが実行中である場合は真を返します。
そうでない場合は偽を返します。

@param job ジョブを指定します。

Shell::ProcessController#active_jobs_exist? -> bool (18307.0)

実行中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。

実行中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。

Shell::ProcessController#jobs_exist? -> bool (18307.0)

実行中か待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。

実行中か待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。

Shell::ProcessController#start_job(command = nil) (18307.0)

指定されたコマンドの実行を開始します。

指定されたコマンドの実行を開始します。

コマンドを省略した場合は、待ち状態のジョブのうち先頭のものを実行します。

@param command コマンドを指定します。

絞り込み条件を変える

Shell::ProcessController#waiting_job?(job) -> bool (18307.0)

指定されたジョブが存在する場合は真を返します。 そうでない場合は偽を返します。

指定されたジョブが存在する場合は真を返します。
そうでない場合は偽を返します。

@param job ジョブを指定します。

Shell::ProcessController#waiting_jobs_exist? -> bool (18307.0)

待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。

待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。

Shell::SystemCommand#flush -> () (18307.0)

@todo

@todo

String#shellescape -> String (18307.0)

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

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

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

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

String#shellsplit -> [String] (18307.0)

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

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

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

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

絞り込み条件を変える

Shell::ProcessController#active_jobs -> Array (18007.0)

実行中のジョブの配列を返します。

実行中のジョブの配列を返します。

Shell::ProcessController#jobs -> Array (18007.0)

全てのジョブの配列を返します。

全てのジョブの配列を返します。

Shell::ProcessController#sfork(command) { ... } -> [Integer, IO, IO] (18007.0)

シンプルな fork です。

シンプルな fork です。

@param command コマンドを指定します。

@return [PID, 入力用 IO, 出力用 IO] からなる配列を返します。

Shell::ProcessController#terminate_job(command) (18007.0)

指定されたコマンドを終了します。

指定されたコマンドを終了します。

@param command コマンドを指定します。

Shell::ProcessController#waiting_jobs -> Array (18007.0)

待機中のジョブを返します。

待機中のジョブを返します。

絞り込み条件を変える

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

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

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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

Shell#stat(filename) -> File::Stat (9610.0)

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

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

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

@see File.stat

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

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

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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

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

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

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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

Shell::CommandProcessor#stat(filename) -> File::Stat (9607.0)

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

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

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

@see File.stat

絞り込み条件を変える

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

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

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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

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

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

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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

Shell::Filter#stat(filename) -> File::Stat (9607.0)

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

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

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

@see File.stat

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

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

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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

Shell#cat(*files) -> Shell::Filter (9346.0)

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

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

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

絞り込み条件を変える

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

実行すると, それらを内容とする 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(file).each { |l|
echo(l) | tee...

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

command を実行する.

...で指定します。

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

使用例:

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

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

Shell#tee(file) -> Shell::Filter (9346.0)

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

....

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

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

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

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

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

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

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

実行すると, それらを内容とする 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(file).each { |l|
echo(l) | tee...

絞り込み条件を変える

<< 1 2 3 > >>