Let us first consult the documentation for the Create Account operation.
Just kidding. There is none.
So let's build our own.
https://stackoverflow.com/questions/6022384/bash-tool-to-get-nth-line-from-a-file
https://stackoverflow.com/questions/39849929/how-to-use-sed-to-extract-lines-in-specified-order
After much inspection (aka sweat and tears)
Translated into English:
Translated into Tech Speak (aka data specs)
That's it.
That's our documentation for this record type.
That's how we will hit the data using awk.
Now we can do some real work.
I will now reply to my own thread.
This could go on for 5-10 replies...
I have prepared some but must think as I go.
Just kidding. There is none.
Actually Stellar has some here
Bash:
PS1="linux> "
KAG_extract=../dat/kag-stellar-export-using-Operations-TAB-2023-06-23-T02\:02\:41-UTC.csv
. ./KAG-set-main-account-symbols.sh
head -1 $KAG_extract
head -1 $KAG_extract | sed 's/,/\n/g' | nl -ba
head -1 $KAG_extract | sed 's/,/\n/g' | nl -ba > KAG-header
https://stackoverflow.com/questions/6022384/bash-tool-to-get-nth-line-from-a-file
https://stackoverflow.com/questions/39849929/how-to-use-sed-to-extract-lines-in-specified-order
After much inspection (aka sweat and tears)
Bash:
linux> for i in 11 8 10 6 7 4 5; do sed -n "${i} {p;q}" KAG-header; done
11 "funder"
8 "account"
10 "startingBalance"
6 "createdAt"
7 "transactionHash"
4 "type"
5 "typeI"
Translated into English:
from
to
x
date
hash
create_Account
0
Translated into Tech Speak (aka data specs)
i
j
x[i,j]
date
hash
selection_key
Bash:
echo 'i
j
x[i,j]
date
hash
selection_key' > t
Bash:
linux> echo " 11 8 10 6 7 4 5" | sed 's/ /\n/g' | sed '1d' > u
linux> cat u
11
8
10
6
7
4
5
Bash:
linux> paste t u | column -t
Bash:
linux> paste t u | xargs printf "%-15s%10d\n"
i 11
j 8
x[i,j] 10
date 6
hash 7
selection_key 4
5 0
That's it.
That's our documentation for this record type.
That's how we will hit the data using awk.
Now we can do some real work.
I will now reply to my own thread.
This could go on for 5-10 replies...
I have prepared some but must think as I go.




