From c1b3d755108baf43a452677b1516ad52c8fa9d0f Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Mon, 12 Apr 2021 20:50:04 +0200 Subject: [PATCH] CV: Hide phone and address with sed --- bin/pull-cv.sh | 5 +++++ cv/index.html | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/pull-cv.sh b/bin/pull-cv.sh index 597c5e2..8c6d0fd 100755 --- a/bin/pull-cv.sh +++ b/bin/pull-cv.sh @@ -16,6 +16,11 @@ diff ~/src/html-cv/data/git-icon.png ./cv/data/git-icon.png >/dev/null 2>&1 || u diff -r ~/src/html-cv/css ./cv/css >/dev/null 2>&1 || updated=true cp ~/src/html-cv/out.html ./cv/index.html +# Hide phone number +sed -i -E 's/\+33 6( [0-9]{2}){4}/[téléphone caché]/' ./cv/index.html +# Hide address +sed -i -E 's/[0-9]{2,3} (rue|avenue|av\.?|boulevard|bld|place|pl\.?) [a-zA-Z ]+/[adresse cachée]/' ./cv/index.html +sed -i -E 's/[0-9]{5} [a-zA-Z]+/[code postal et ville cachés]/' ./cv/index.html cp ~/src/html-cv/data/cv-photo ./cv/data/cv-photo cp ~/src/html-cv/data/internet-icon.png ./cv/data/internet-icon.png cp ~/src/html-cv/data/git-icon.png ./cv/data/git-icon.png diff --git a/cv/index.html b/cv/index.html index 805a934..47f6382 100644 --- a/cv/index.html +++ b/cv/index.html @@ -17,9 +17,9 @@

Né le 10/11/1991

-

+33 6 10 59 32 22

-

15 rue Michel Lecomte

-

75003 Paris

+

[téléphone caché]

+

[adresse cachée]

+

[code postal et ville cachés]

tfranken(at)protonmail.com