All pastes #549262 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-08 01:56 UTC
rendered paste body
unset x
for i in /tmp/todisc-work[0-9]*; do
    echo suffix[x++]=$(awk -F 'k' '{print $2}' <<< "$i")
done
new_suffix=0
for s in ${suffix[@]}; do
    ((s > new_suffix)) && new_suffix=$((s+1))
done