Created
May 9, 2020 21:47
-
-
Save mattexdee/8162152df145d6b66141d1dfedb4c529 to your computer and use it in GitHub Desktop.
This code will add all of the files in a directory to an objects.txt file with quotation marks at the beginning and end with a comma.
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
cd your/directory/path/here | |
printf '"%s",\n' * > objects.txt | |
NOTE: There are single quotes before the double quotes in %s. All spaced out these are the characters: ' " % s " , \ n ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment