1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh . ./config mkdir -p "$partsdir" $ssplit -x -t $nb_threshold -n $nb_shares < "$passphrase" > "$partsdir/all" for num in `seq 1 $nb_shares` do grep "^$num-" "$partsdir/all" > "$partsdir/$num" done rm -f "$partsdir/all" rm -f "$passphrase"