1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-4.git synced 2024-11-21 23:54:19 +00:00
bda-4-steffo/scripts/fixup-data-files.sh
2023-03-05 21:49:24 +01:00

15 lines
No EOL
331 B
Bash
Executable file

#!/usr/bin/env bash
repo=$(git rev-parse --show-toplevel)
cwd=$(pwd)
data_files=$(ls $repo/data/cratesio/*/data/*.csv)
cd "$repo"
for file in $data_files; do
echo "Fixing data file $file..."
basefilename=$(basename $file)
sed --expression='s=\\=\\\\=g' $file > "$repo/data/neo4j/import/$basefilename"
done
cd "$cwd"