If/Else Conditional

Basic if/elif/else conditional in Bash. Use [[ ]] for string comparisons and -eq/-ne/-lt/-gt for numbers.

Variables

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.