Created
May 6, 2013 22:44
-
-
Save ceme/5528861 to your computer and use it in GitHub Desktop.
Shell script to make files from a list of file names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
trim() { echo $1; } | |
echo enter file name | |
read fname | |
exec < $fname | |
while read line | |
do | |
echo $(trim $line) > ./test/$(trim $line) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment