We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac8d40 commit 8567ae9Copy full SHA for 8567ae9
Pilot1/Uno/get-node-txt.awk
@@ -0,0 +1,20 @@
1
+
2
+# GET NODE TXT AWK
3
+# See get-node-txt.sh
4
5
+$2 == node && $1 == "node:" {
6
+ print $0;
7
+ while (1) {
8
+ if (getline <= 0) {
9
+ # EOF:
10
+ exit;
11
+ }
12
13
+ if ($1 == "node:") {
14
+ # The next node is starting:
15
16
17
+ # Good node data:
18
19
20
+}
Pilot1/Uno/get-node-txt.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+set -eu
+# GET NODE TXT
+# Pull out one node from a plan txt file
+if (( ${#} != 2 ))
+then
+ echo "get-node-txt: Provide PLAN_JSON NODE"
+ exit 1
+fi
+PLAN_JSON=$1
+NODE=$2
+THIS=$( dirname $0 )
+awk -v node=$NODE -f $THIS/get-node-txt.awk < $PLAN_JSON
0 commit comments