るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.011秒)
トップページ > クエリ:grep[x] > クエリ:pipeline[x]

別のキーワード

  1. _builtin grep
  2. _builtin grep_v
  3. enumerable grep
  4. enumerable grep_v
  5. lazy grep

ライブラリ

モジュール

検索結果

Open3.#pipeline(*cmds) -> [Process::Status] (18119.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。

.../ruby.1.gz"
p Open3.pipeline(["zcat", fname], "nroff -man", "less")
#=> [#<Process::Status: pid 11817 exit 0>,
# #<Process::Status: pid 11820 exit 0>,
# #<Process::Status: pid 11828 exit 0>]

例2:

require "open3"

Open3.pipeline([{"LANG"=>"C"}, "env"], ["grep", "LANG"], "less")...