るりまサーチ

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

別のキーワード

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

キーワード

検索結果

<< 1 2 > >>

Shell#cat(*files) -> Shell::Filter (18122.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|...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (18121.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|...

Shell::Filter#cat(*files) -> Shell::Filter (18121.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|...

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

@todo

...@todo...

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

@todo

...@todo...

絞り込み条件を変える

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

@todo

...@todo...

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

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

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

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

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

@
see File.truncate...

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

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

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

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

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

@
see File.truncate...

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

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

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

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

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

@
see File.truncate...

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

@todo

...@todo...

絞り込み条件を変える

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

@todo

...@todo...

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

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

...

@
param 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/passwd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/passwd") | head("-n #{i}") | tail("-n 1")).to_s
i += 1
end
}...

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

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

...クトを返します.

@
param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、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") >> "all.tee"
}
}
}

@
see Dir.[]...

Shell::CommandProcessor#glob(pattern) -> Shell::Filter (20.0)

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

...クトを返します.

@
param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、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") >> "all.tee"
}
}
}

@
see Dir.[]...

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

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

...クトを返します.

@
param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、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") >> "all.tee"
}
}
}

@
see Dir.[]...

絞り込み条件を変える

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

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

...クトを返します.

@
param strings シェルコマンド 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|...

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

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

...トを返します.

@
param file シェルコマンド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|...
<< 1 2 > >>