408件ヒット
[1-100件を表示]
(0.144秒)
別のキーワード
ライブラリ
-
shell
/ command-processor (408)
キーワード
- [] (6)
- append (6)
- atime (6)
- basename (6)
- blockdev? (6)
- cat (6)
- chardev? (6)
-
check
_ point (6) - chmod (6)
- chown (6)
- concat (6)
- ctime (6)
- delete (6)
- directory? (6)
- dirname (6)
- echo (6)
- executable? (6)
-
executable
_ real? (6) - exist? (6)
- exists? (6)
- file? (6)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- glob (6)
- grpowned? (6)
- identical? (6)
- join (6)
- link (6)
- lstat (6)
- mkdir (6)
- mtime (6)
- notify (6)
- open (6)
- out (6)
- owned? (6)
- pipe? (6)
- readable? (6)
-
readable
_ real? (6) - readlink (6)
- rehash (6)
- rename (6)
- rm (6)
- rmdir (6)
- setgid? (6)
- setuid? (6)
- size (6)
- size? (6)
- socket? (6)
- split (6)
- stat (6)
- sticky? (6)
- symlink (6)
- symlink? (6)
- system (6)
- tee (6)
- test (6)
- transact (6)
- truncate (6)
- unlink (6)
- utime (6)
-
world
_ readable? (6) -
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6) - zero? (6)
検索結果
先頭5件
-
Shell
:: CommandProcessor # expand _ path(path) -> String (9302.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6302.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: CommandProcessor # check _ point (6102.0) -
@todo
@todo -
Shell
:: CommandProcessor # ftype(filename) -> String (6102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.ftype... -
Shell
:: CommandProcessor # grpowned?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned?... -
Shell
:: CommandProcessor # 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
:: CommandProcessor # pipe?(file) -> bool (6102.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#pipe?... -
Shell
:: CommandProcessor # split(pathname) -> [String] (6102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
:: CommandProcessor # mkdir(*path) -> Array (3108.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
:: CommandProcessor # chown(owner , group , *filename) -> Integer (3102.0) -
File クラスにある同名のクラスメソッドと同じです.
...にある同名のクラスメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil また......は -1 を指定することで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown... -
Shell
:: CommandProcessor # foreach(path = nil , &block) -> () (3102.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
:: CommandProcessor # glob(pattern) -> Shell :: Filter (3102.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
:: CommandProcessor # notify(*opts) { . . . } -> () (3102.0) -
@todo
@todo -
Shell
:: CommandProcessor # readlink(path) -> String (3102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
:: CommandProcessor # rmdir(*path) -> () (3102.0) -
Dir.rmdirと同じです。 (複数可)
...Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。... -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (3102.0) -
command を実行する.
...command を実行する.
@param command 実行するコマンドのパスを文字列で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
S... -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (3102.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate...