![](/posts/little-bash-script/photo-1629654291663-b91ad427698f_hu4473f0709a5595edd9982ecfaf9fcac6_76251_320x320_fill_q75_box_smart1.jpg)
Little bash script
A little bash script to help me remember how they work
#!/bin/bash
#functions
fruit()
{
echo "fruit found"
}
#main
if \[ $# != 1 \]
then
echo "No argument provided"
exit 1
fi
if \[\[ $1 == 'pear' \]\]; then
fruit
fi