Bourne-shell or Bash 関連メモ
-a file | : | True if file exists (same as -e file). |
-f file | : | True if file exists and is a regular file. |
-h file | : | True if file exists and is a symbolic link (same as -L file). |
-s file | : | True if file exists and has a size greater than zero. |
-r file | : | True if file exists and is readable. |
-w file | : | True if file exists and is writable. |
-x file | : | True if file exists and is executable. |
file1 -nt file2 | : | True if file1 is newer than file2, or if file1 exists and file2 does not. |
file1 -ot file2 | : | True if file1 is older than file2, or if file2 exists and file1 does not. |
-z string | : | True if the length of string is zero. |
-n string | : | True if the length of string is non-zero. |
string1 == string2 | : | True if the strings are equal. |
string1 != string2 | : | True if the strings are not equal. |
変更履歴
12 August 2009 | : | テキスト版のメモをHTML化 |
(途中期間) | : | ちまちまと書いていたようだが,記録無し |
1997 - 1998 頃? | : | テキスト版のメモ書き開始 |