るりまサーチ

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

別のキーワード

  1. shell cat
  2. cat new
  3. cat each
  4. filter cat
  5. shell/filter cat

キーワード

検索結果

<< 1 2 > >>

Shell::Cat (18001.0)

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

@todo

@todo

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

@todo

@todo

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

@todo

@todo

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

実行すると, それらを内容とする 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) |...

絞り込み条件を変える

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

実行すると, それらを内容とする 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) |...

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

実行すると, それらを内容とする 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) |...

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

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

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

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

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

@see File.truncate...

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

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

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

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

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

@see File.truncate...

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

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

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

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

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

@see File.truncate...

絞り込み条件を変える

Shell::Concat (6001.0)

Shell::Cat#each(rs = nil) {|line| ... } (3001.0)

@todo

@todo

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

@todo

@todo

Shell::Concat#each(rs = nil) {|job| ... } (3001.0)

@todo

@todo

Shell::Concat.new(sh, *jobs) (3001.0)

@todo

@todo

絞り込み条件を変える

Shell::Filter#|(filter) -> object (13.0)

パイプ結合を filter に対して行います。

...m filter Shell::Filter オブジェクトを指定します。

@return filter を返します。

使用例
require 'shell'
Shell
.def_system_command("tail")
Shell
.def_system_command("head")
Shell
.def_system_command("wc")
sh = Shell.new
sh.transact {
i = 1
while i <= (cat("/etc/p...
...asswd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/passwd") | head("-n #{i}") | tail("-n 1")).to_s
i += 1
end
}...

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

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

...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") >> "all.tee"
}
}...
<< 1 2 > >>