630件ヒット
[601-630件を表示]
(0.072秒)
ライブラリ
- ビルトイン (72)
- benchmark (48)
- matrix (12)
- mkmf (12)
-
net
/ ftp (12) - rake (24)
-
rexml
/ document (72) -
rexml
/ sax2listener (24) -
rexml
/ streamlistener (36) -
rubygems
/ source _ info _ cache (24) - shell (60)
-
shell
/ command-processor (48) -
shell
/ filter (84) -
shell
/ system-command (90)
クラス
-
Benchmark
:: Tms (48) -
File
:: Stat (12) -
Gem
:: SourceInfoCache (24) - IO (12)
- Matrix (12)
-
Net
:: FTP (12) -
RDoc
:: Options (12) -
REXML
:: DocType (36) -
REXML
:: Entity (12) -
REXML
:: NotationDecl (24) -
Rake
:: Application (12) - Shell (60)
-
Shell
:: CommandProcessor (48) -
Shell
:: Filter (84) -
Shell
:: SystemCommand (90) - String (12)
- SystemCallError (12)
- SystemExit (24)
モジュール
- FileUtils (12)
- Kernel (12)
-
REXML
:: SAX2Listener (24) -
REXML
:: StreamListener (36)
キーワード
- < (6)
- > (6)
- >> (6)
- active? (6)
- cat (18)
-
close
_ on _ exec= (12) - command (6)
- cstime (12)
- doctype (24)
- each (6)
- echo (18)
- eigensystem (12)
- entitydecl (12)
- errno (12)
- external (12)
-
external
_ id (12) -
find
_ system _ command (18) - flush (6)
- format (12)
- glob (18)
- input= (6)
- kill (6)
-
latest
_ system _ cache _ file (12) - name (6)
- notationdecl (24)
- notify (12)
-
op
_ dir (12) - out (18)
- pipe? (12)
- public (12)
- sh (12)
- start (6)
-
start
_ export (6) -
start
_ import (6) - status (12)
- stime (12)
- success? (12)
- sum (12)
-
super
_ each (6) - system= (12)
-
system
_ cache _ file (12) -
system
_ path (6) -
system
_ path= (6) - tee (18)
- terminate (6)
-
to
_ a (18) -
to
_ s (6) - transact (18)
- wait? (6)
- xsystem (12)
- | (6)
検索結果
先頭4件
-
Shell
:: Filter # tee(file) -> Shell :: Filter (7.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...す.
@param file シェルコマンド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) |... -
Shell
:: Filter # to _ a -> [String] (7.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Shell
:: Filter # to _ s -> String (7.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}... -
String
# sum(bits = 16) -> Integer (7.0) -
文字列の bits ビットのチェックサムを計算します。
...{
def sum(bits)
sum = 0
each_byte {|c| sum += c }
return 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 %= 65...