I need to pass to pdftk, a list of arguments constituted by strings repeated twice like:
A1-2 B1-2 A3-4 B3-4 A5-6 B5-6... and so on...
I managed to achieve this with this workaround
for ((x=1, y=2;x>=18, y<=18;x++, y++)); do echo "A$x-$y B$x-$y "; done| awk 'NR %2==1 {print $1, $2} ' | tr '\n' ' '
that gives:
A1-2 B1-2 A3-4 B3-4 A5-6 B5-6 A7-8 B7-8 A9-10 B9-10 A11-12 B11-12 A13-14 B13-14 A15-16 B15-16 A17-18 B17-18
but I'm unsatisfied, and I'm looking for a proper , more elegant and better way to perform this task