るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
9件ヒット [1-9件を表示] (0.036秒)
トップページ > バージョン:2.1.0[x] > クエリ:String[x] > ライブラリ:shell/command-processor[x]

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

クラス

キーワード

検索結果

Shell::CommandProcessor#basename(filename, suffix = "") -> String (310.0)

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

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

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

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。

@see File.basename

Shell::CommandProcessor#dirname(filename) -> String (310.0)

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

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

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

@see File.dirname

Shell::CommandProcessor#expand_path(path) -> String (310.0)

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

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

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

@see File.expand_path

Shell::CommandProcessor#ftype(filename) -> String (310.0)

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

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

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

@see File.ftype

Shell::CommandProcessor#join(*item) -> String (310.0)

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

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

@param item 連結したいディレクトリ名やファイル名を文字列で与えます。

@see File.join

絞り込み条件を変える

Shell::CommandProcessor#readlink(path) -> String (310.0)

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

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

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

@see File.readlink

Shell::CommandProcessor#split(pathname) -> [String] (310.0)

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

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

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

@see File.split

Shell::CommandProcessor::NoDelegateMethods -> [String] (310.0)

内部で使用する定数です。

内部で使用する定数です。

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (307.0)

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

実行すると, それらを内容とする 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(file + ".tee") >> "al...