- 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.efirefoxmatchesFirefox
!~and!~*mean the opposite, doesn't match. - check for existence of a file using the
-for!-foperators; - check for existence of a directory using
-dor!-d; - check for existence of a file, directory or symbolic link using
-eor!-e; - check whether a file is executable using
-xor!-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