138件ヒット
[1-100件を表示]
(0.126秒)
別のキーワード
ライブラリ
-
shell
/ filter (138)
検索結果
先頭5件
-
Shell
:: Filter # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6302.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: Filter # check _ point (6102.0) -
@todo
@todo -
Shell
:: Filter # ftype(filename) -> String (6102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype... -
Shell
:: Filter # grpowned?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned?... -
Shell
:: Filter # input -> Shell :: Filter | nil (6102.0) -
現在のフィルターを返します。
現在のフィルターを返します。 -
Shell
:: Filter # input=(filter) (6102.0) -
フィルターを設定します。
...フィルターを設定します。
@param filter フィルターを指定します。... -
Shell
:: Filter # inspect -> String (6102.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect... -
Shell
:: Filter # open(path , mode) -> File | Dir (6102.0) -
path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。
...
path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。
@param path 開きたいパスを指定します。
@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。
@see File.open, Dir.......open... -
Shell
:: Filter # pipe?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#pipe?... -
Shell
:: Filter # split(pathname) -> [String] (6102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
:: Filter # finish _ all _ jobs (3002.0) -
@todo
@todo -
Shell
:: Filter # mkdir(*path) -> Array (108.0) -
Dir.mkdirと同じです。 (複数可)
...可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=> ["foo"]
rescue => err
puts er... -
Shell
:: Filter # chown(owner , group , *filename) -> Integer (102.0) -
File クラスにある同名のクラスメソッドと同じです.
...にある同名のクラスメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil また......は -1 を指定することで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown... -
Shell
:: Filter # foreach(path = nil , &block) -> () (102.0) -
pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。
...
pathがファイルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。
@param path ファイルもしくはディレクトリのパスを文字列で指定します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){......|f|
puts f
}... -
Shell
:: Filter # glob(pattern) -> Shell :: Filter (102.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...実行すると, それらを内容とする Filter オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Sh......ell.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 # notify(*opts) { . . . } -> () (102.0) -
@todo
@todo -
Shell
:: Filter # readlink(path) -> String (102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink...