78件ヒット
[1-78件を表示]
(0.031秒)
クラス
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30)
検索結果
先頭5件
-
Shell
:: Filter # to _ a -> [String] (18208.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Shell
# cat(*files) -> Shell :: Filter (108.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") >> "al... -
Shell
# echo(*strings) -> Shell :: Filter (108.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") >> "... -
Shell
# glob(pattern) -> Shell :: Filter (108.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") >> "... -
Shell
# tee(file) -> Shell :: Filter (108.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") >> "... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (107.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") >> "al... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (107.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") >> "... -
Shell
:: CommandProcessor # glob(pattern) -> Shell :: Filter (107.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") >> "... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (107.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") >> "... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (107.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") >> "al... -
Shell
:: Filter # echo(*strings) -> Shell :: Filter (107.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") >> "... -
Shell
:: Filter # glob(pattern) -> Shell :: Filter (107.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") >> "... -
Shell
:: Filter # tee(file) -> Shell :: Filter (107.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") >> "...