You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cypher/load-scripts/convert-csvs.sh
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
#!/bin/bash
2
2
3
+
echo"starting preprocessing"
4
+
3
5
# replace headers
4
6
whileread line;do
5
7
IFS=''read -r -a array <<<$line
@@ -21,3 +23,5 @@ sed -i "s#|\([0-9][0-9][0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9]\)|#|\1\2\3|#g" "
21
23
# convert each datetime of format yyyy-mm-ddThh:mm:ss.mmm+0000
22
24
# to a number of format yyyymmddhhmmssmmm
23
25
sed -i "s#|\([0-9][0-9][0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9]\)T\([0-9][0-9]\):\([0-9][0-9]\):\([0-9][0-9]\)\.\([0-9][0-9][0-9]\)+0000#|\1\2\3\4\5\6\7#g"${NEO4J_DATA_DIR}/*${POSTFIX}
0 commit comments