Skript für "confidential" data.

master
Julian M. Kunkel 2020-08-27 14:18:36 +01:00
parent 261552f700
commit 3899e8fcdc
1 changed files with 14 additions and 0 deletions

View File

@ -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