diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-11-17 16:58:02 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-11-17 16:58:02 +0100 |
commit | ea9626b60092f2d2c79431718c3ca8bc383429a6 (patch) | |
tree | f76a6dcf118fc3977eda1cbcf368018715ebe01c /tests/test_file.sh | |
parent | 23f22348c5281fff685c1fa89255e7e1e76266a4 (diff) | |
download | ufo-roof-ea9626b60092f2d2c79431718c3ca8bc383429a6.tar.gz ufo-roof-ea9626b60092f2d2c79431718c3ca8bc383429a6.tar.bz2 ufo-roof-ea9626b60092f2d2c79431718c3ca8bc383429a6.tar.xz ufo-roof-ea9626b60092f2d2c79431718c3ca8bc383429a6.zip |
Networking setup
Diffstat (limited to 'tests/test_file.sh')
-rw-r--r-- | tests/test_file.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_file.sh b/tests/test_file.sh index 5f47e45..1eb29ca 100644 --- a/tests/test_file.sh +++ b/tests/test_file.sh @@ -1,11 +1,15 @@ #! /bin/bash +shopt -s extglob + packet_size=1280 packets_per_dataset=50 +rm -f roof_test.raw 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 + for id in $(seq 1 16); do + name=$(ls -- *$id.@(fx|dat) | grep -P "_0?$id\.\w+") + echo "Appending packet $packet from $name " + dd if=$name of="roof_test.raw" bs=$packet_size count=$packets_per_dataset skip=$((packet * $packets_per_dataset)) oflag=append conv=notrunc status=none done done |