summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-24 18:42:07 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-24 18:42:07 +0100
commitff172f550c6607a75f42b3eb2b3fc258e5fcbd66 (patch)
tree50a312627cbe27dbf04247c51b327da6c85f7014
parentkratke domene, davčna številka, docx odstranjevalnik datumov komentarjev (diff)
downloadr-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.tar
r-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.tar.gz
r-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.tar.bz2
r-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.tar.lz
r-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.tar.xz
r-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.tar.zst
r-ff172f550c6607a75f42b3eb2b3fc258e5fcbd66.zip
-rwxr-xr-xskripti/odstrani-datum-komentarjev-docx.sh4
1 files changed, 2 insertions, 2 deletions
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