10件ヒット
[1-10件を表示]
(0.101秒)
ライブラリ
- ビルトイン (4)
-
rubygems
/ gem _ path _ searcher (1) -
shell
/ command-processor (4) - socket (1)
クラス
- Addrinfo (1)
-
File
:: Stat (4) -
Gem
:: GemPathSearcher (1) -
Shell
:: CommandProcessor (4)
キーワード
- blockdev? (1)
- cat (1)
- chardev? (1)
- echo (1)
-
ipv6
_ mc _ global? (1) -
lib
_ dirs _ for (1) - setgid? (1)
- setuid? (1)
- tee (1)
検索結果
先頭5件
-
Shell
:: CommandProcessor # glob(pattern) -> Shell :: Filter (63343.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする Filter オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、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|
... -
Addrinfo
# ipv6 _ mc _ global? -> bool (27304.0) -
IPv6 のマルチキャスト(グローバルスコープ) アドレスであれば真を返します。
IPv6 のマルチキャスト(グローバルスコープ)
アドレスであれば真を返します。 -
Gem
:: GemPathSearcher # lib _ dirs _ for(spec) -> String (18352.0) -
ライブラリの格納されているディレクトリを glob に使える形式で返します。
ライブラリの格納されているディレクトリを glob に使える形式で返します。
例:
'/usr/local/lib/ruby/gems/1.8/gems/foobar-1.0/{lib,ext}' -
File
:: Stat # blockdev? -> bool (18322.0) -
ブロックスペシャルファイルの時に真を返します。
ブロックスペシャルファイルの時に真を返します。
//emlist[][ruby]{
Dir.glob("/dev/*") {|bd|
if File::Stat.new(bd).blockdev?
puts bd
end
}
#例
#...
#=> /dev/hda1
#=> /dev/hda3
#...
//} -
File
:: Stat # chardev? -> bool (18322.0) -
キャラクタスペシャルファイルの時に真を返します。
キャラクタスペシャルファイルの時に真を返します。
//emlist[][ruby]{
Dir.glob("/dev/*") {|bd|
if File::Stat.new(bd).chardev?
puts bd
end
}
#例
#...
#=> /dev/tty1
#=> /dev/stderr
#...
//} -
File
:: Stat # setgid? -> bool (18322.0) -
setgidされている時に真を返します。
setgidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/usr/sbin/*") {|bd|
if File::Stat.new(bd).setgid?
puts bd
end
}
#例
#...
#=> /usr/sbin/postqueue
#...
//} -
File
:: Stat # setuid? -> bool (18322.0) -
setuidされている時に真を返します。
setuidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/bin/*") {|bd|
if File::Stat.new(bd).setuid?
puts bd
end
}
#例
#...
#=> /bin/ping
#=> /bin/su
#...
//} -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (9022.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする Filter オブジェクトを返します.
@param files シェルコマンド 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 (9022.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする 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(file + ".tee") >> "al... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (9022.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする 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) | tee(file + ".tee") >> "all...