xargs, ls, and sort

Needed to download multiple files and join them together

$ for count in {0..100};do echo $count; done | xargs -n 1 -I '{}' -P 10 curl -O 'http://someshite/updates/1.1/pke{}.bin'

$ ls -1 | sort -n -k1.4 | xargs -n 1 -I '{}'  cat '{}' > fw.bin
Advertisements