Skip to content

Instantly share code, notes, and snippets.

@ceme
Created May 6, 2013 22:44
Show Gist options
  • Save ceme/5528861 to your computer and use it in GitHub Desktop.
Save ceme/5528861 to your computer and use it in GitHub Desktop.
Shell script to make files from a list of file names
#!/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