2012-02-16 11 views

答えて

11

オペレータは、オペランドがディレクトリ、シンボリックリンク、または別の特殊ファイルではなく、通常のファイルであるかどうかをテストします。

-で始まるすべての演算子は、ファイルテスト演算子と呼ばれ、通常はシェルスクリプト言語でも使用されます。それらは単項演算子(単数のオペランドを取る)であり、!または~は単項演算子です。

+2

[ファイル演算子の詳細情報については、こちらをご覧ください。](http://perldoc.perl.org/functions/-X.html) – Feysal

8
-r readable 
-w writable 
-x executable 
-o owned by user 
-R readable by this user or group 
-W writable by user or group 
-X executable by this user or group 
-O owned by this user 
-e File or directory name exists 
-z File exists and has zero size 
-s exists and has nonzero size (the value is the size in bytes) 
-f plain file 
-d directory 
-l symbolic link 
-S socket 
+0

おかげでたくさん... –

関連する問題