blockchain parsing in bash