9件ヒット
[1-9件を表示]
(0.023秒)
クラス
- Shell (1)
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (3) -
Shell
:: SystemCommand (4)
検索結果
先頭5件
-
Shell
:: SystemCommand # command -> String (9313.0) -
@todo
@todo
コマンド名を返します。 -
Shell
:: SystemCommand # name -> String (9313.0) -
@todo
@todo
コマンド名を返します。 -
Shell
:: SystemCommand # notify(*opts) -> String (9313.0) -
@todo
...@todo
@param opts
@see Shell#notify... -
Shell
:: SystemCommand # notify(*opts) {|message| . . . } -> String (9313.0) -
@todo
...@todo
@param opts
@see Shell#notify... -
Shell
# echo(*strings) -> Shell :: Filter (328.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|
echo(l) | tee... -
Shell
:: Filter # to _ a -> [String] (328.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Shell
:: Filter # to _ s -> String (328.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (325.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|
echo(l) | tee... -
Shell
:: Filter # echo(*strings) -> Shell :: Filter (325.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|
echo(l) | tee...