16 lines
267 B
Bash
16 lines
267 B
Bash
|
|
#!/bin/bash
|
||
|
|
rm output.dat
|
||
|
|
currFN=0
|
||
|
|
echo "processing chunks "
|
||
|
|
while /bin/true; do
|
||
|
|
if [ ! -f chunks/${currFN}.chunk ] ; then
|
||
|
|
echo chunk $currFN is missing!
|
||
|
|
exit 1
|
||
|
|
else
|
||
|
|
echo -n $currFN/
|
||
|
|
fi
|
||
|
|
cat chunks/${currFN}.chunk >> output.dat
|
||
|
|
let currFN=$currFN+1
|
||
|
|
done
|
||
|
|
|