Created
October 9, 2022 22:41
-
-
Save snickerbockers/04f1863f0ded52c0d61f3cd47d4ba26e to your computer and use it in GitHub Desktop.
perl one-liner to turn a text file into a c-string
This file contains 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
perl -pe 's;^(.*)$;\"\1\\n\";;' < input.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment