A test in bash can be achieved using the test command. One can you the [ command for the same thing. The [ command takes as input a valid test string $myvar -eq 5 (to test equality) and should always take as a last token the ] character.