I want to write script in bash (I start programming in bash), but i have error, i try everything, and still i don't know how to repair this.
#!/bin/bash
cap=0
cat|while read line
do
read a
if[$a -gt $cap]
then echo "MORE"
fi
done
That's easy script, but i'm newbie in bash, please someone help me ;)