Merge branch 'main' of ssh://kawomi.com/var/local/git/qrtransfer
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
#!/bin/bash
|
||||
rm output.dat
|
||||
currFN=0
|
||||
currFN=1
|
||||
chunkNum=$(ls chunks/*.chunk | wc -l)
|
||||
echo "processing chunks "
|
||||
while /bin/true; do
|
||||
while [ $currFN -le $chunkNum ] ; do
|
||||
if [ ! -f chunks/${currFN}.chunk ] ; then
|
||||
echo chunk $currFN is missing!
|
||||
exit 1
|
||||
else
|
||||
echo -n $currFN/
|
||||
echo -n [$currFN/$chunkNum]
|
||||
fi
|
||||
cat chunks/${currFN}.chunk >> output.dat
|
||||
let currFN=$currFN+1
|
||||
done
|
||||
|
||||
echo DONE.
|
||||
|
||||
Reference in New Issue
Block a user