るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.045秒)
トップページ > クエリ:to[x] > クラス:Shell[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

検索結果

Shell#directory?(file) -> bool (6101.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#directory?...

Shell#record_separator -> String (6101.0)

@todo

...@todo...

Shell#record_separator=(rs) (6101.0)

@todo

...@todo...

Shell.default_record_separator -> String (6101.0)

執筆者募集

...執筆者募集

Shell
で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。

@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま...

Shell.default_record_separator=(rs) (6101.0)

執筆者募集

...執筆者募集

Shell
で用いられる入力レコードセパレータを表す文字列を設定および参照します。
なにも指定しない場合は$/ の値が用いられます。

@param rs Shell で用いられる入力レコードセパレータを表す文字列を指定しま...

絞り込み条件を変える

Shell#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (108.0)

@todo

...@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。...

Shell#rename(from, to) -> 0 (108.0)

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

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

@param from ファイルの名前を文字列で与えます。

@param to 新しいファイル名を文字列で与えます。

@see File.rename...

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

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

...ルコマンド 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") >>...

Shell#echo(*strings) -> Shell::Filter (7.0)

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

...s シェルコマンド 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") >>...

Shell#glob(pattern) -> Shell::Filter (7.0)

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

...パターンの書式については、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|
echo(l) | tee(file + ".tee") >>...

絞り込み条件を変える

Shell#tee(file) -> Shell::Filter (7.0)

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

...ルコマンド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") >> "...