- the name of a variable; false vales are: empty string("", or any string starting with "0");
- a comparison of a variable using the = and != operators;
- pattern matching with
regular expressions
:
~
performs a case-sensitive match
~*
performs a case-insensitive match i.efirefox
matchesFirefox
!~
and!~*
mean the opposite, doesn't match. - check for existence of a file using the
-f
or!-f
operators; - check for existence of a directory using
-d
or!-d
; - check for existence of a file, directory or symbolic link using
-e
or!-e
; - check whether a file is executable using
-x
or!-x
.
Last active
December 20, 2015 13:19
-
-
Save samarpanda/6137806 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment