Hello,
In vsql is there an option of the \o meta-command that will append output from my sql commands to a file as opposed to replacing the file?
Can \o be used to append rather that replace a file?
Moderator: NorbertKrupa
-
- Intermediate
- Posts: 96
- Joined: Thu Jul 19, 2012 12:33 am
Can \o be used to append rather that replace a file?
Thanks,
Harry
Harry
Re: Can \o be used to append rather that replace a file?
Hi!
On Linux:
On Linux:
-
Code: Select all
\o | cat >> /path/to/file.csv
- (a second one will show the output also)
Code: Select all
\o | tee -a /path/to/file.csv
-
- Intermediate
- Posts: 96
- Joined: Thu Jul 19, 2012 12:33 am
Re: Can \o be used to append rather that replace a file?
NICE! Thanks for the quick response
Thanks,
Harry
Harry