1件ヒット
[1-1件を表示]
(0.106秒)
ライブラリ
- shell (1)
検索結果
-
Shell
# glob(pattern) -> Shell :: Filter (54667.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) | te...