別のキーワード
ライブラリ
- ビルトイン (24)
- benchmark (12)
- mkmf (12)
- rake (12)
-
rexml
/ document (12) -
rexml
/ sax2listener (24) -
rexml
/ streamlistener (36) - shell (48)
-
shell
/ command-processor (36) -
shell
/ filter (60) -
shell
/ system-command (24)
クラス
-
Benchmark
:: Tms (12) - IO (12)
-
REXML
:: NotationDecl (12) - Shell (48)
-
Shell
:: CommandProcessor (36) -
Shell
:: Filter (60) -
Shell
:: SystemCommand (24) - String (12)
モジュール
- FileUtils (12)
- Kernel (12)
-
REXML
:: SAX2Listener (24) -
REXML
:: StreamListener (36)
キーワード
- < (6)
- > (6)
- >> (6)
- cat (18)
-
close
_ on _ exec= (12) - doctype (24)
- each (6)
- echo (18)
- entitydecl (12)
- format (12)
- glob (18)
- kill (6)
- notationdecl (24)
- notify (12)
- out (18)
- sh (12)
- sum (12)
- system= (12)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
- xsystem (12)
- | (6)
検索結果
先頭5件
-
Shell
# cat(*files) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...と, それらを内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each... -
Shell
# echo(*strings) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ると, それらを内容とする Filter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {... -
Shell
# glob(pattern) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
s... -
Shell
# tee(file) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...と, それらを内容とする Filter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...と, それらを内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ると, それらを内容とする Filter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {... -
Shell
:: CommandProcessor # glob(pattern) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
s... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...と, それらを内容とする Filter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {... -
Shell
:: Filter # <(src) -> self (13.0) -
srcをフィルタの入力とする。 srcが, 文字列ならばファイルを, IOオブジェクトであれ ばそれをそのまま入力とする。
...IOオブジェクトであれ
ばそれをそのまま入力とする。
@param src フィルタの入力を, 文字列もしくは,IO オブジェクトで指定します。
使用例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
(sh.head("-n 30") < "/... -
Shell
:: Filter # >(to) -> self (13.0) -
toをフィルタの出力とする。 toが, 文字列ならばファイルに, IOオブジェクトであれ ばそれをそのまま出力とする。
...クトであれ
ばそれをそのまま出力とする。
@param to 出力先を指定します。文字列ならばファイルに,IOオブジェクトならばそれに出力します。
使用例
require 'shell'
Shell.def_system_command("tail")
sh = Shell.new
sh.transact {
(sh.tail... -
Shell
:: Filter # >>(to) -> self (13.0) -
toをフィルタに追加する。 toが, 文字列ならばファイルに, IOオブジェクトであれば それをそのまま出力とする。
...クトであれば
それをそのまま出力とする。
@param to 出力先を指定します。文字列ならばファイルに、IOオブジェクトならばそれに出力します。
使用例
require 'shell'
Shell.def_system_command("tail")
sh = Shell.new
sh.transact {
(sh.ta... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...と, それらを内容とする Filter オブジェクトを返します.
@param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each... -
Shell
:: Filter # echo(*strings) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ると, それらを内容とする Filter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {... -
Shell
:: Filter # glob(pattern) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
s... -
Shell
:: Filter # tee(file) -> Shell :: Filter (13.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...と, それらを内容とする Filter オブジェクトを返します.
@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each {... -
String
# sum(bits = 16) -> Integer (13.0) -
文字列の bits ビットのチェックサムを計算します。
...urn 0 if sum == 0
sum & ((1 << bits) - 1)
end
//}
例えば以下のコードで UNIX System V の
sum(1) コマンドと同じ値が得られます。
//emlist[例][ruby]{
sum = 0
ARGF.each_line do |line|
sum += line.sum
end
sum %= 65536
//}
@param bits チェックサムのビット数...