54件ヒット
[1-54件を表示]
(0.076秒)
ライブラリ
- shell (54)
キーワード
- append (6)
- cat (6)
- directory? (6)
- echo (6)
- glob (6)
-
record
_ separator (6) -
record
_ separator= (6) - rename (6)
- tee (6)
検索結果
先頭5件
-
Shell
# directory?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?... -
Shell
# record _ separator -> String (6102.0) -
@todo
...@todo... -
Shell
# record _ separator=(rs) (6102.0) -
@todo
...@todo... -
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (109.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
# rename(from , to) -> 0 (109.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param from ファイルの名前を文字列で与えます。
@param to 新しいファイル名を文字列で与えます。
@see File.rename... -
Shell
# cat(*files) -> Shell :: Filter (8.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 (8.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 (8.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 (8.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") >> "...