66件ヒット
[1-66件を表示]
(0.045秒)
種類
- インスタンスメソッド (54)
- 特異メソッド (12)
ライブラリ
- shell (66)
キーワード
- append (6)
- cat (6)
-
default
_ record _ separator (6) -
default
_ record _ separator= (6) - directory? (6)
- echo (6)
- glob (6)
-
record
_ separator (6) -
record
_ separator= (6) - rename (6)
- tee (6)
検索結果
先頭5件
-
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") >> "...