Page 1 of 1

Can \o be used to append rather that replace a file?

Posted: Fri Sep 27, 2013 2:04 pm
by harryrundles
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?

Re: Can \o be used to append rather that replace a file?

Posted: Fri Sep 27, 2013 2:28 pm
by id10t
Hi!

On Linux:
  • Code: Select all

    \o | cat >> /path/to/file.csv
  • Code: Select all

    \o | tee -a /path/to/file.csv
    (a second one will show the output also)

Re: Can \o be used to append rather that replace a file?

Posted: Fri Sep 27, 2013 3:57 pm
by harryrundles
NICE! Thanks for the quick response :ugeek: