Created
September 28, 2019 14:18
-
-
Save terbo/57883b297c076e9dbcacf9949f9dca6c to your computer and use it in GitHub Desktop.
extract code from node-red "function" flows
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
grep -B1 func\": $FLOWS | sed -e s/^\ *// -e 's/\"func\":\ \"//' -e 's/",$//g' -e 's/\"name\": \"/function /' -e 's/\\n/\n/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment