diff options
Diffstat (limited to 'tests/test_file.sh')
-rw-r--r-- | tests/test_file.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_file.sh b/tests/test_file.sh new file mode 100644 index 0000000..5f47e45 --- /dev/null +++ b/tests/test_file.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +packet_size=1280 +packets_per_dataset=50 + +for packet in $(seq 0 24); do + for id in $(seq 0 15); do + name=$(ls *$id.dat | grep -P "_0?$id.dat") + dd if=$name of="roof_test.raw" bs=$packet_size count=$packets_per_dataset skip=$((packet * $packets_per_dataset)) oflag=append conv=notrunc + done +done |