-
Notifications
You must be signed in to change notification settings - Fork 0
Shell script
Kenichi Kamiya edited this page Nov 6, 2024
·
9 revisions
Aside from 🤮, I need to write Shell script in several place.
This is a note for me.
I searched these difference many times.
-
-e
: exists -
-f
: exists & regular # What is the regular? 🤔 -
-d
: exists & directory -
-r
: exists & the user has read permission -
-w
: exists & the user has write permission -
-x
: exists & executable -
-N
: exists & modified from last read -
-s
: exists & non empty
-
-n
:non empty
-
-z
:empty