Assuming your file is formatted as:
Then this would do it
Code:
while read line; do mkdir -p "$line"; done < file
If instead your fields are separated by spaces, eg:
then you could do:
Code:
for dir in $(cat file); do mkdir -p $dir; done
but you would need to make sure that none of your directories have a space in the name, or the loop will treat them as separate names.