G
G
getto2122019-02-02 20:56:09
linux
getto212, 2019-02-02 20:56:09

How to create some number of files via bash script?

How to create 100 files with a BASH script and have each one have a number in order?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AVKor, 2019-02-02
@getto212

for n in {1..100}
do
  touch "file-$n"
done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question