May 2017
Beginner
552 pages
28h 47m
English
To generate blank files in bulk, follow these steps:
$ touch filename
for name in {1..100}.txt
do
touch $name
done
In the preceding code, {1..100} will be expanded to a string 1, 2, 3, 4, 5, 6, 7...100. Instead of {1..100}.txt, we can use various shorthand patterns such as test{1..200}.c, test{a..z}.txt, and so on.
If a file already exists, the touch command changes all timestamps associated with the file to the current time. These options define a subset of timestamps to be modified:
Instead of the current ...