#!/bin/bash
echo "Going to blabla"
# Arg from cmd
echo Variable one $1
# -z check if $1 exist
if [ -z $1 ]
then
echo Do zzz
else
read something
echo Do $something
fi
# Compare strings
str1="Hello Bash"
str2="Hello Bash"
if [ "$str1" == "$str2" ]; then
echo "Strings are equal"
else
echo "Strings are not equal"
fi
```sh
# Test file exist (use -d to test directory)
if [ ! -f /tmp/foo.txt ]; then
echo "File not found!"
fi
# God damn one liner
if [ -f foo.txt ]; then echo hello; fi
```