Created
February 20, 2020 15:02
-
-
Save mcnemesis/8f9425b8c97ee1df422f76c82853527f to your computer and use it in GitHub Desktop.
Transform a file of lines into a pythonic-list of comma delimited strings on the command line
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
cat old_db_tables.list.txt |sed -e 's/^/"/;s/$/"/'| tr '\n' ','|sed 's/^/[/;s/$/]/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment