Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Created February 7, 2014 15:39
Show Gist options
  • Save heyalexej/8865077 to your computer and use it in GitHub Desktop.
Save heyalexej/8865077 to your computer and use it in GitHub Desktop.
Create file names from input file.
while read line; do touch $(echo -n "$line").myfilextension; done < input.csv
@heyalexej
Copy link
Author

This one liner reads an input file line by line and creates file names with the extension of your choice. In case you don't have other interesting hobbies or just need to generate hundreds of thousands of files for something every once in a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment