198件ヒット
[1-100件を表示]
(0.133秒)
クラス
-
Shell
:: Filter (198)
キーワード
- [] (6)
- append (6)
- atime (6)
- basename (6)
- chmod (6)
- chown (6)
- concat (6)
- ctime (6)
- delete (6)
- dirname (6)
- each (6)
- echo (6)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- glob (6)
- identical? (6)
- lstat (6)
- mtime (6)
- open (6)
- readlink (6)
- rename (6)
- rm (6)
- split (6)
- stat (6)
- system (6)
- test (6)
-
to
_ a (6) - transact (6)
- truncate (6)
- unlink (6)
- utime (6)
検索結果
先頭5件
-
Shell
:: Filter # find _ system _ command(command) (18503.0) -
@todo
@todo -
Shell
:: Filter # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (12603.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: Filter # concat(*jobs) -> Shell :: Concat (12403.0) -
@todo
@todo -
Shell
:: Filter # dirname(filename) -> String (12403.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.dirname... -
Shell
:: Filter # basename(filename , suffix = "") -> String (12303.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き......'.' を含まない任意の文字列にマッチします。
@see File.basename... -
Shell
:: Filter # truncate(path , length) -> 0 (12303.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Filter # identical? (12203.0) -
@todo
@todo -
Shell
:: Filter # readlink(path) -> String (12203.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
:: Filter # rename(from , to) -> 0 (12203.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param from ファイルの名前を文字列で与えます。
@param to 新しいファイル名を文字列で与えます。
@see File.rename... -
Shell
:: Filter # transact { . . . } -> object (12203.0) -
ブロック中で shell を self として実行します。
...ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}... -
Shell
:: Filter # finish _ all _ jobs (9203.0) -
@todo
@todo -
Shell
:: Filter # lstat(filename) -> File :: Stat (6303.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
:: Filter # stat(filename) -> File :: Stat (6303.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat... -
Shell
:: Filter # to _ a -> [String] (6210.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Shell
:: Filter # atime(filename) -> Time (6203.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime... -
Shell
:: Filter # chown(owner , group , *filename) -> Integer (6203.0) -
File クラスにある同名のクラスメソッドと同じです.
...スメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定するこ......とで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown... -
Shell
:: Filter # each(rs = nil) -> () (6203.0) -
フィルタの一行ずつをblockに渡します。
...行ずつをblockに渡します。
@param rs レコードセパレーターを表す文字列を指定します。
nil ならば、Shell.record_separatorの値が使用されます。
使用例
require 'shell'
sh = Shell.new
sh.cat("/etc/passwd").each { |line|
puts line
}...