るりまサーチ

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

別のキーワード

  1. shell/builtin-command new
  2. etc sc_shell
  3. shell/builtin-command each
  4. shell cd
  5. shell debug

検索結果

<< 1 2 3 ... > >>

Shell.new(pwd = Dir.pwd, umask = nil) -> Shell (39218.0)

プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.

...プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShell
ブジェクトを生成します.

@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir....

Shell::Filter.new(sh) -> Shell::Filter (21218.0)

Shell::Filter クラスのインスタンスを返します。 通常このメソッドを直接使う機会は少ないでしょう。

...
Shell
::Filter クラスのインスタンスを返します。
通常このメソッドを直接使う機会は少ないでしょう。...

Shell::ProcessController.new(shell) (21214.0)

自身を初期化します。

...自身を初期化します。

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

Shell::CommandProcessor.new(shell) (21202.0)

@todo

@todo

Shell#system(command, *opts) -> Shell::SystemCommand (21131.0)

command を実行する.

...で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Shell
.verbose = false
sh = Shell.new

print sh.system("ls", "-l")
Shell
.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT...

絞り込み条件を変える

Shell.undef_system_command(command) -> Shell::CommandProcessor (21131.0)

commandを削除します.

...and 削除するコマンドの文字列を指定します。

動作例:
require 'shell'
Shell
.def_system_command("ls")
# ls を定義
Shell
.undef_system_command("ls")
# ls を 削除

sh = Shell.new
begin
sh.transact {
ls("-l").each {|l|
puts l
}
}
res...

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

Shell#echo(*strings) -> Shell::Filter (21125.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|
echo(l) | tee(fi...

Shell#glob(pattern) -> Shell::Filter (21125.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(f...

Shell#tee(file) -> Shell::Filter (21125.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|
echo(l) | tee(...

絞り込み条件を変える

Shell#link(old, new) -> 0 (21107.0)

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

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

@param old ファイル名を表す文字列を指定します。

@param new ファイル名を表す文字列を指定します。

@see File.link...

Shell#symlink(old, new) -> 0 (21107.0)

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

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

@param old ファイル名を表す文字列を指定します。

@param new シンボリックリンクを表す文字列を指定します。

@see File.symlink...

Shell::AppendFile.new(sh, filename) (21101.0)

@todo

@todo

Shell::AppendIO.new(sh, filename) (21101.0)

@todo

@todo

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

@todo

@todo

絞り込み条件を変える

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

@todo

@todo

Shell::Echo.new(sh, *strings) (21101.0)

@todo

@todo
<< 1 2 3 ... > >>