You have a syntax error. The double semicolons are not needed at the end of your fi
I also don't know about your version of id, but the one installed on my version of linux accepts a -g option, but not with an additional parameter. If the return is always false, you might want to read the man page for the id command.
hey guys, i can not run this script, as it says, Line 4: [: too many arguments, i am new in scripting
question is write a script in which user type the number and if its divisible by 15 and get remainder 0, then it is a unique number otherwise not a unique number.
#/bin/bash
echo "write the number"
read a
if [ $a % 15 -eq 0 ];
then
echo "$a is special"
else
echo "$a is not special"
fi
please help in solving this, i am having very hard time with this.
ok thanks franklin and sorry to write in the middle of the thread, as that was my first question in this form, i have never used this before, thanks for your help.