Created
August 24, 2017 14:15
-
-
Save ibbo/f5560705c522ae08b9cbb549b9a4bd0e to your computer and use it in GitHub Desktop.
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
#!/usr/bin/awk -f | |
! /#include_code/ { print $0 } | |
/#include_code/ { | |
i=0 | |
while(( getline line<"test_file.js") > 0 ) { | |
if (i == 0) printf "\"" line "\"" | |
else printf ",\n\"" line "\"" | |
i=i+1 | |
} | |
printf "\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment