How to read all strings of a certain length into shell variables named sequentially?
0
votes
1
answer
302
views
I was wondering if there was code to find every string of a certain length in a text file and save each one as a new variable?
For example, there are 5 strings in a text file. Two of them are 3 characters long. The idea is to parse out all the strings which are 8 characters long and put them in variables going in sequential order, e.g.
To view more info on bitcoin addresses, and to see what characters they consist of, visit the website on bitcoin addresses here
var1
, var2
, var3
.
How would I make this?
Thanks!
(For those wondering, I found an old file on my PC with a bunch of bitcoin wallets with private keys, trying to save them all as variables to check their balances.)
To view more info on bitcoin addresses, and to see what characters they consist of, visit the website on bitcoin addresses here
Asked by ETHguy
(1 rep)
Mar 2, 2020, 04:03 PM
Last activity: Mar 3, 2020, 06:11 PM
Last activity: Mar 3, 2020, 06:11 PM