From ff172f550c6607a75f42b3eb2b3fc258e5fcbd66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 24 Mar 2023 18:42:07 +0100 Subject: odstrani datum komentarjev docx sh --- skripti/odstrani-datum-komentarjev-docx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'skripti') diff --git a/skripti/odstrani-datum-komentarjev-docx.sh b/skripti/odstrani-datum-komentarjev-docx.sh index 28517f9..41a1871 100755 --- a/skripti/odstrani-datum-komentarjev-docx.sh +++ b/skripti/odstrani-datum-komentarjev-docx.sh @@ -2,8 +2,8 @@ set -xe p=`rev <<<$0 | cut -d/ -f1 | rev` t=`mktemp -p "" -d $p.XXX` unzip $1 -d$t -sed -ie 's/ w:date="[^"]*"//g' $t/word/comments.xml -sed -ie 's/ w16cex:dateUtc="[^"]"//g' $t/word/commentsExtensible.xml +sed -i 's/ w:date="[^"]*"//g' $t/word/comments.xml +sed -i 's/ w16cex:dateUtc="[^"]*"//g' $t/word/commentsExtensible.xml b=`rev <<<$1 | cut -d/ -f1 | cut -d. -f2- | rev` d=`mktemp -p "" $b.XXX.docx` rm $d # hack that causes race condition -- cgit v1.2.3