るりまサーチ

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

別のキーワード

  1. shell/builtin-command new
  2. rubygems/command command
  3. irb/extend-command def_extend_command
  4. irb/extend-command install_extend_commands
  5. shell/builtin-command each

ライブラリ

キーワード

検索結果

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

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

...tern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

動作例
require 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact {
glob
("*.txt").to_a.each { |fil...

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

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

...シェルコマンド 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 + ".tee...

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

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

...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(file + ".tee...

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

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

...シェルコマンド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 + ".tee...