I have a script with a simple globbing pattern to create multiple files and it works just as
I want it to.
The problem arises when I use the at
command to schedule the running of the script.
Somehow, the script creates only one file instead of the many files it should create.
This is the code below:
#!/bin/bash
mkdir folder1
touch folder1/file{1..100}.txt
This somehow creates only file{1..100}.txt
in the folder1 directory instead of a hundred files.
Output when I schedule the script to run at any given time:
stevis@stevis:~/Desktop/Linux/bash/scheduling$ ls folder1/
file{1..100}.txt