bin2img.sh 249 B

12345678910111213
  1. #!/bin/bash
  2. #find . -iname "*.bin" | sort | xargs -0 -I {} sh -c 'echo "{}"; cat "{}" >> out.img;'
  3. SAVEIFS=$IFS
  4. IFS=$(echo -en "\n\b")
  5. for i in $(LANG=C; find . -iname "*.bin" | sort); do
  6. echo "$i"
  7. cat "$i" >> out.img;
  8. done
  9. IFS=$SAVEIFS