64件ヒット
[1-64件を表示]
(0.082秒)
キーワード
-
optparse
/ shellwords (11) -
shell
/ builtin-command (6) -
shell
/ command-processor (6) -
shell
/ error (6) -
shell
/ filter (6) -
shell
/ process-controller (6) -
shell
/ system-command (6) - shellwords (11)
検索結果
-
shell (44085.0)
-
Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。
...プル
==== Example 1:
require 'shell'
sh = Shell.cd("/tmp")
sh.mkdir "shell-test-1" unless sh.exists?("shell-test-1")
sh.cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
unless sh.exists?(dir)
sh.mkdir dir
sh.cd(dir) do
f = sh.open("tmpFile", "w")
f.......puts "TEST"
f.close
end
print sh.pwd
end
end
==== Example 2:
require 'shell'
sh = Shell.cd("/tmp")
sh.transact do
mkdir "shell-test-1" unless exists?("shell-test-1")
cd("shell-test-1")
for dir in ["dir1", "dir3", "dir5"]
if !exists?(dir)
m......kdir dir
cd(dir) do
f = open("tmpFile", "w")
f.print "TEST\n"
f.close
end
print pwd
end
end
end
==== Example 3: Using Pipe
require 'shell'
sh = Shell.new
sh.cat("/etc/printcap") | sh.tee("tee1") > "tee2"
(sh.cat < "/etc/prin... -
shell
/ process-controller (18001.0) -
プロセスを制御するためのクラスを定義したライブラリです。
プロセスを制御するためのクラスを定義したライブラリです。 -
shell
/ builtin-command (12017.0) -
Shell で使用するビルトインコマンドを定義しているライブラリです。
...Shell で使用するビルトインコマンドを定義しているライブラリです。... -
shell
/ command-processor (12017.0) -
Shell で使用可能なコマンドの大半を定義するライブラリです。
...Shell で使用可能なコマンドの大半を定義するライブラリです。... -
shell
/ error (12017.0) -
shell で使用する例外を定義したライブラリです。
...shell で使用する例外を定義したライブラリです。... -
shell
/ filter (12017.0) -
Shell::Filter を定義しているライブラリです。
...Shell::Filter を定義しているライブラリです。... -
optparse
/ shellwords (12001.0) -
OptionParser#on で使用可能な引数に Shellwords 追加されます。 オプションの引数は Shellwords.#shellwords によって配列に変換されてから、 OptionParser#on のブロックに渡されます。
...引数に Shellwords
追加されます。
オプションの引数は Shellwords.#shellwords によって配列に変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/shellwords'
opts = OptionParser.new
opts.on("-s VAL", Shellwords){|a|... -
shell
/ system-command (12001.0) -
-
shellwords (12001.0)
-
UNIX Bourne シェルの単語分割規則に従った文字列分割機能と文字列エスケープ 機能を提供します。
...す。
Shellwords モジュールは、空白区切りの単語分割を行う shellsplit、
文字列をエスケープする shellescape、文字列エスケープを文字列リストに
対して適用する shelljoin の3つのモジュール関数を提供します。
また、shellwords ラ......イブラリを require すると、組み込みクラス String
と Array が拡張され、これらのモジュール関数と同じ機能が
String#shellsplit, String#shellescape, Array#shelljoin として使える
ようになります。...