What i was wondering is, how to copy the next sqlite3 code into a single powershell script:
SQLite version 3.22.0 2018-01-22 18:45:57
Enter ".help" for usage hints.
sqlite> .once -x
sqlite> SELECT * FROM analysis;
I tried the following thing regarding the changing to powershell:
echo "SELECT * FROM analysis" echo ".once -x;" | sqlite3 C:\ProgramData\PROISER\ISASPSUS\datastore\dsfile.db
But as you can know, there is no way that two echo statements can be together in a same place. And the end result that throws Powershell is:
sqlite3 : Error: near line 2: near "echo": syntax error
En línea: 1 Carácter: 51
+ ... once -x;" | sqlite3 C:\ProgramData\PROISER\ISASPSUS\datastore\dsfile. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Error: near lin...": syntax error:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Now.