From 3899e8fcdc8312e916b51edf52c6a6e9917c90ac Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Thu, 27 Aug 2020 14:18:36 +0100 Subject: [PATCH] =?UTF-8?q?Skript=20f=C3=BCr=20"confidential"=20data.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/extract-conf-data.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/extract-conf-data.sh diff --git a/scripts/extract-conf-data.sh b/scripts/extract-conf-data.sh new file mode 100755 index 0000000..f21846d --- /dev/null +++ b/scripts/extract-conf-data.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [[ ! -e datasets/job_metadata_confidential.csv ]] ; then + exit 0 +fi + +# This script extracts the actual usernames and job-informations +# As it is confidential information, we cannot include the files + +for I in $@ ; do + DATA=$(grep $I datasets/job_metadata.csv | cut -d "," -f 7-) + echo -n $I, + grep $DATA datasets/job_metadata_confidential.csv | cut -d "," -f 1-5 +done