るりまサーチ

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

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

クラス

モジュール

キーワード

検索結果

<< < 1 2 3 >>

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

Shell::Filter#echo(*strings) -> Shell::Filter (13.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|...

Shell::Filter#glob(pattern) -> Shell::Filter (13.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|...

Shell::Filter#tee(file) -> Shell::Filter (13.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|...

Shell::Filter#to_a -> [String] (13.0)

実行結果を文字列の配列で返します。

...実行結果を文字列の配列で返します。

require
'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a...

絞り込み条件を変える

Shell::Filter#to_s -> String (13.0)

実行結果を文字列で返します。

...実行結果を文字列で返します。

require
'shell'
Shell.def_system_command("wc")
sh = Shell.new

sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}...
<< < 1 2 3 >>