diff bin/doExtract.sh @ 33:4c23b1766692

towards sub-division of resulting tar files
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 24 Mar 2020 17:53:35 +0000
parents 1e479e3ea9c4
children ec99b2d1d2fc
line wrap: on
line diff
--- a/bin/doExtract.sh	Tue Mar 24 17:52:52 2020 +0000
+++ b/bin/doExtract.sh	Tue Mar 24 17:53:35 2020 +0000
@@ -7,7 +7,7 @@
 mkdir -p $segid/logs
 cd $segid
 ls /beegfs/common_crawl/CC-MAIN-${ccid}/${segid}/CC-MAIN-*.warc.gz | \
-parallel --joblog job_${jobid}.log -j 12 -N 1 'id=$(echo {} | cut -f 6 -d / | cut -f 3- -d - | cut -f 1 -d .) ; \
+parallel --joblog job_${jobid}.log -j 18 -N 1 'id=$(echo {} | cut -f 6 -d / | cut -f 3- -d - | cut -f 1 -d .) ; \
     echo starting $id $(date) >> logs/${jobid}_{#}_log ; \
     unpigz -dp 1 -c {} | $HOME/lib/valhalla/bin/warc.sh ${id} application/pdf 2>> logs/${jobid}_{#}_log ; \
     echo finished ${id} $(date) >> logs/${jobid}_{#}_log'
@@ -15,6 +15,7 @@
 echo $(date) $(hostname) $jobid $segid $res
 if [ $res = 0 ]
  then
-  tar -cf /beegfs/common_crawl/CC-MAIN-${ccid}/${segid}/extracts.tar *
+  cat ../by11s.txt | while read 
+  tar -cf /beegfs/common_crawl/CC-MAIN-${ccid}/${segid}/extracts.tar * && 
   echo $(date) $(hostname) $jobid /beegfs/common_crawl/CC-MAIN-${ccid}/${segid}/extracts.tar
 fi