I\'m trying to put the \'f-$count\'(f-1,f-2) name into the array.
Below is the code,
echo \"Enter the count\"
read count
echo $count
#arr=()
i=1
while t
In shell programming, the brackets in the if
MUST be delimited by spaces:
if ["$i" -gt "$count"]; then
MUST be:
if [ "$i" -gt "$count" ]; then
[EDIT] The left bracket ([
) is actually a built-in shell command and so requires the space afterwards to delimit it from its parameters, as with any command.