cypher-shell
cypher-shell copied to clipboard
Piping from a file results in empty print lines with auto or plain format
When piping results for a file, i.e. either via:
> cat /tmp/graph.db.cypher | cypher-shell
or
> cypher-shell < /tmp/graph.db.cypher
cypher-shell (Neo4j v3.2.1) prints an empty line per statement using either the plain or auto formats.
Additionally if using a batch (begin/commit) it may make more sense to only print a summary record after each batch is processed rather than one line per statement especially if there are thousands/millions of statements.
> cypher-shell --version
Cypher-Shell 1.1.1
I encountered the same issue in linux environment. Tried to upgrade to Cypher-Shell 1.1.2 with no luck. Is it fixed in 3.3.0?
I managed to fix the problem by removing BOM characters in the cypher file, which was encoded as UTF-8 with BOM.