Simple unix variables in script

I'm creating a script that asks a user for a variable

ex
read filename;
read numberinput;

I also have a bunch of files named file.0 file.1 ... file.55

I'm trying to delete all files (if they exist) about file.$numberinput.

Can someone help me out on how to include the variable as part as the filename?

You can use:

${filename}.${numberinput}

try this

for i in `seq 1 55`; do [ -s file.$i ] && rm file.$i || echo "file.$i not present";done

I'm trying to figure it out still. I know this isn't the best way to complete the task. Any tips are appreciated.
basically fnom is a log file that I want to rotate in a specific way. when the script is run, the log file will become fnom.1 and every older version is iterated by 1.

After I get the user input for the file location and name this is my script.

touch ${fnom}.{1..20}
mv ${fnom} ${fnom.1}

mv ${fnom}.20 ${fnom}.21
mv ${fnom}.19 ${fnom}.20
mv ${fnom}.18 ${fnom}.19
mv ${fnom}.17 ${fnom}.18
mv ${fnom}.16 ${fnom}.17
mv ${fnom}.15 ${fnom}.16
mv ${fnom}.14 ${fnom}.15
mv ${fnom}.13 ${fnom}.14
mv ${fnom}.12 ${fnom}.13
mv ${fnom}.11 ${fnom}.12
mv ${fnom}.10 ${fnom}.11
mv ${fnom}.9 ${fnom}.10
mv ${fnom}.8 ${fnom}.9
mv ${fnom}.7 ${fnom}.8
mv ${fnom}.6 ${fnom}.7
mv ${fnom}.5 ${fnom}.6
mv ${fnom}.4 ${fnom}.5
mv ${fnom}.3 ${fnom}.4
mv ${fnom}.2 ${fnom}.3
mv ${fnom}.1 ${fnom}.2

echo "COMPLETE"

here is the error I am getting

 line 28: ${fnom.1}: bad substitution
mv: cannot stat `foo.1': No such file or directory

If the dir only had a file named foo ... then after the script runs foo.(3-20) exist but foo.1 and foo.2 do not.

You cannot use ${fnom.1}. You need to use ${fnom}.1

Use curly braces only around the variable name.

Thanks for catching that mistake. Now I'm trying to delete any files that are greater than the number input.

I want to write something like
numberinput+1

rm ${name}.${numberinput+1..99}

Use a for loop:

for i in {1..10}
do
  echo "$i"
done