Skip to main content
added 4 characters in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

I have a list of names in a text file (list.txtlist.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/tschtcsh
for name_id in `cat <path to list.txt>/list.txt` ; do
mkdir <name_id>${name_id}

 

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

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.

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/tcsh
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.

added 24 characters in body; edited tags
Source Link
jimmij
  • 48.7k
  • 20
  • 136
  • 141

Create a list of directories at the same time

I have a list of names in a txttext file (list.txt) I want to create a list of folders for the names included in that txt file. I wrote thisthe following script, but it doesn't work and 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}

 

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

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}

 

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.

edited body
Source Link
user88036
user88036

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>${subj_idname_id}

 

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>${subj_id}

 

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}

 
Source Link
user88036
user88036
Loading