mirror of
https://github.com/Steffo99/unimore-bda-4.git
synced 2024-11-22 16:14:17 +00:00
15 lines
No EOL
331 B
Bash
Executable file
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" |