GeoJSON に変換し、elasticsearchをクリーンアップするためにogr2ogr
実行する csv ログ ファイルがあります。sed
具体的には:
ogr2ogr -f "GeoJSON" output.json input.csv
sed -i -e '1,4d' -e '$d' output.json # delete first four lines and last line
sed -i '1 i\[' output.json # insert line with '[' at beginning of file
これらのコマンドを NiFi で実行したいのですが、ExecuteProcess を構成できませんでした。