るりまサーチ

最速Rubyリファレンスマニュアル検索!
243件ヒット [1-100件を表示] (0.015秒)

別のキーワード

  1. rake sh
  2. fileutils sh
  3. constants lock_sh
  4. _builtin lock_sh
  5. sync sh

検索結果

<< 1 2 3 > >>

shell (26184.0)

Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。

...uby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。

sh
/csh の制御文は Ruby の機能を用いて実現します。

=== サンプル

==== Example 1:

require 'shell'
sh
= Shell.cd("/tmp")
sh
.mkdir "shell-test-...
...shell-test-1")
sh
.cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
unless sh.exists?(dir)
sh
.mkdir dir
sh
.cd(dir) do
f = sh.open("tmpFile", "w")
f.puts "TEST"
f.close
end
print sh.pwd
end
end

==== Example 2:

require 'shell'
sh
...
...uire 'shell'
sh
= Shell.new
sh
.cat("/etc/printcap") | sh.tee("tee1") > "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") > "tee12"
sh
.cat("/etc/printcap") | sh.tee("tee1") >> "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") >> "tee12"

==== Example 4:

require 'shell'
sh
= Shell.n...

Shell#cat(*files) -> Shell::Filter (21225.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat
(file).each { |l|
echo(l) |...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (21225.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Sh
ell.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#cat(*files) -> Shell::Filter (21225.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
require 'shell'
Sh
ell.def_system_command("head")
sh
= Shell.new
sh
.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat
(file).each { |l|
echo(l) |...

Shell#concat(*jobs) -> Shell::Concat (9300.0)

@todo

@todo

絞り込み条件を変える

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (9300.0)

@todo

@todo

Shell::Filter#concat(*jobs) -> Shell::Concat (9300.0)

@todo

@todo

Gem::Specification::MARSHAL_FIELDS -> Hash (9200.0)

@todo

@todo

Gem::Specification::SPECIFICATION_VERSION_HISTORY -> Hash (9200.0)

gemspec ファイルのバージョンの歴史を表す定数です。

gemspec ファイルのバージョンの歴史を表す定数です。

Shell#truncate(path, length) -> 0 (9100.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

絞り込み条件を変える

Shell::CommandProcessor#truncate(path, length) -> 0 (9100.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

Shell::Filter#truncate(path, length) -> 0 (9100.0)

File クラスにある同名のクラスメソッドと同じです.

...File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate...

Shell::Cat (9000.0)

Shell::Concat (9000.0)

Shell::Cat.new(sh, *filenames) (6101.0)

@todo

@todo

絞り込み条件を変える

<< 1 2 3 > >>