#!/bin/bash

#Przedstawione różne sposoby sprawdzenia liczby przy pomocy instrukcji if:
echo "Podaj liczbe:"
read number

if [ $number == 1 ]
then
	echo "Liczba jest jedynką."
fi

if [ $number -eq 1 ]
then
	echo "Liczba jest jedynką."
fi

if [ "$number" = "1" ]
then
	echo "Liczba jest jedynką."
fi


a=1
b=2

#warunek z AND
if [ $a == 1 ] && [ $b == 2 ]
then
	echo "Wykonano"
fi

if [ $a == 1 -a $b == 2 ]
then
	echo "Wykonano"
fi

#warunek z OR
if [ $a == 1 ] || [ $b == 2 ]
then
	echo "Wykonano"
fi

if [ $a == 1 -o $b == 2 ]
then
	echo "Wykonano"
fi















#mniejsze niz 1
if [ $x -lt 1 ]
then
fi

#wieksze niz 2
if [ $x -gt 2 ]
then
fi






if (( $number == 1 ))
then
	echo "Liczba jest jedynką."
fi
