I'm getting an error with my script for the last line of the file and I'm not sure why:
./sampledata: line 55: syntax error: unexpected end of file
Example Code:
#!/bin/bash
temptime=$(date +"%H:%M")
usercount=0
while word in userfile
{ usercount=$usercount+1 }
counter=0
usercount=$usercount/2 #format
echo -n $temptime " |" >> numusersfile
while $counter -le $usercount
{
echo -n "*" >> numusersfile
counter=$counter+1
}
echo "" >> numusersfile
Am I doing my loops correctly? Or is there something wrong with how I'm writing to the file? I'm kinda stumped on this right now..