> > Lets say for example I have a text file with one name on each line and I need > to create files based on the names in that file, If I can use a for loop it > would be greate, but I don't know how to get each name from the file, > You don't need a script for that. Something simple as: cat file_with_filenames | xargs touch will just create those filenames in the file file_with_filenames but of course they will have zero size. So you have to be more specific on what you want to do with those file names.