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

Moderator: NorbertKrupa

Post Reply
harryrundles
Intermediate
Intermediate
Posts: 96
Joined: Thu Jul 19, 2012 12:33 am

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

Post by harryrundles » Fri Sep 27, 2013 2:04 pm

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?
Thanks,
Harry

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

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

Post by id10t » Fri Sep 27, 2013 2:28 pm

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)

harryrundles
Intermediate
Intermediate
Posts: 96
Joined: Thu Jul 19, 2012 12:33 am

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

Post by harryrundles » Fri Sep 27, 2013 3:57 pm

NICE! Thanks for the quick response :ugeek:
Thanks,
Harry

Post Reply

Return to “vSQL”