mirror of https://github.com/hyperledger/besu
An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
139 B
8 lines
139 B
9 months ago
|
N=$2 # Number of groups
|
||
|
i=0 # Initialize counter
|
||
|
cat $1 | while read line; do
|
||
|
echo "$line" >> "group_$((i % N + 1)).txt"
|
||
|
let i++
|
||
|
done
|
||
|
|