A
A
Asparagales2019-03-03 16:17:29
linux
Asparagales, 2019-03-03 16:17:29

How to create a set of directories using a text file?

I have a text file that contains a list of words. I need to create a group of subdirectories in a certain directory, but in such a way that the names for them are automatically created from the words that are present in the file. In order not to drive in all the names manually. There is no way to do this, but there must be a solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-03-03
@q2digger


while read LINE; do mkdir -p /path/to/directory/$LINE; done<FILE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question