1
I need to create a sequence of files. Ex :1.log, 2.log, 3.log, 4.log and so on.
I need to define the initial value and the final value, then it creates for me inside the desired folder. Below is the code more or less with the idea I want:
#!/bin/sh
echo -e " DIGITE O NUMERO INICIAL: "
read num1
echo -e " DIGITE AGORA O NUMERO FINAL: ";
read num2
#num3 = num1
#num4 = num2
cd /var/actus/digital/nfce/inutilizar/
touch {$num1..$num2}.log
ls /var/actus/digital/nfce/inutilizar/
It is generating only one file. For example, if you had set num1 equal to 1 and num2 equal to 2, is generating {1..2}.log, and need to generate 1.log and 2.log.
Thank you very much, it worked out here
– Ricardo JM Sistemas