るりまサーチ

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.019秒)
トップページ > クエリ:File[x] > クエリ:files[x] > ライブラリ:shell/command-processor[x] > クラス:Shell::CommandProcessor[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. base file
  4. file size
  5. digest file

検索結果

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

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

...m 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) | tee(file...