first i want to read number of files that he want to create it
#!/bin/bash
touch file{0..$number}
I trayed with this syntax but output is the following
file{0..number} >> as example
first i want to read number of files that he want to create it
#!/bin/bash
touch file{0..$number}
I trayed with this syntax but output is the following
file{0..number} >> as example
Copyright © 2021 Jogjafile Inc.
In
bashvariable expansion happens after sequence expression expansion, so you can't use variables inside a sequence expression.Instead you need to use something like a for loop: