Skip to main content
3 of 5
edited body
user avatar
user avatar

Create a list of directories at the same time

I have a list of names in a txt file (list.txt) I want to create a list of folders for the names included in that txt file. I wrote this script but I don't know what is wrong:

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

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

 
user88036