るりまサーチ

最速Rubyリファレンスマニュアル検索!
318件ヒット [301-318件を表示] (0.075秒)
トップページ > クエリ:t[x] > クエリ:@[x] > 種類:インスタンスメソッド[x] > ライブラリ:shell/command-processor[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

クラス

キーワード

検索結果

<< < ... 2 3 4 >>

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (109.0)

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

...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(f...
...ile).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

Shell::CommandProcessor#foreach(path = nil, &block) -> () (109.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...pathがファイルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@
param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){...
...|f|
puts f
}...

Shell::CommandProcessor#rmdir(*path) -> () (109.0)

Dir.rmdirと同じです。 (複数可)

...Dir.rmdirと同じです。 (複数可)

@
param path 削除するディレクトリ名を文字列で指定します。...
<< < ... 2 3 4 >>