Mercurial > hg > cc > cirrus_home
view bin/unfold.sh @ 190:f2bf736c2d40
working, with issues:
1) warc.export.cdx.path is not set
2) mime property isn't getting through
3) lastMod isn't showing up
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Tue, 24 Sep 2024 17:08:05 +0100 |
| parents | a82c325e8b32 |
| children |
line wrap: on
line source
#!/bin/bash # Usage: unfold.sh links_... pdfs=/beegfs/common_crawl/CC-MAIN-2019-35/pdfs links=$pdfs/links f=$1 IFS=' ' awk '{if (NR==1) { o=$1 ; u=$2 } else { if ($1=="annot" || $1=="scrape") { print o,"\t",u o=$1 u=$2 } else { u=u $1 } } } END { print o,"\t",u }' $f
