るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file chmod
  4. file chown
  5. file path

ライブラリ

キーワード

検索結果

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

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

...ェルコマンド 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(file + ".tee") >> "all....

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

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

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

Shell#cat(*files) -> Shell::Filter (131.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...

Shell#glob(pattern) -> Shell::Filter (31.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) | tee(file + ".tee") >> "all.tee"
}
}
}

@see Dir.[]...