Skip to main content
4 of 5
added 24 characters in body; edited tags
jimmij
  • 48.7k
  • 20
  • 136
  • 141

Create a list of directories

I have a list of names in a text file (list.txt) I want to create a list of folders for the names included in that file. I wrote the following script, but it doesn't work and I don't know what is wrong:

#!/bin/tsch
for name_id in `cat <path to list.txt>/list.txt` ; do
mkdir <name_id>${name_id}

 

The file list.txt and the scripts are in the same folder.

user88036