I'm having a hard time figuring out how to use a $var inside curly braces {}..
#!/bin/bash
read -p "How many files must there be built?" numb
for n in {1..$numb}
do
echo "Building file $n"
touch file$n.txt
done
This would result in:
How many files must there be built?8
Building file {1..8}
I've tried enclosing the $numb inside backticks or double quotes but to no avail..