[openstack-dev] I love csv output in openstackclient, please never removed it
comnea.dani at gmail.com
Sat Oct 3 06:37:47 UTC 2015
thanks for sharing, useful indeed.
On Fri, Oct 2, 2015 at 8:51 PM, Ricardo Carrillo Cruz <
ricardo.carrillo.cruz at gmail.com> wrote:
> Erm, yeah, I hear your pain with processing output with awk.
> Having the option to output CSV is cool :-).
> Thanks for sharing.
> 2015-10-02 21:49 GMT+02:00 Thomas Goirand <zigo at debian.org>:
>> I saw the csv output format of openstackclient going and coming back.
>> Please leave it in, it's super useful, especially when you combine it
>> with "q-text-as-data". Just try to apt-get install q-text-as-data" and
>> try by yourself:
>> openstack endpoint list --long -f csv | \
>> q -d , -H 'SELECT ID FROM - WHERE `Service Name`="cinder"'
>> This is so much better than any awk hacks to get IDs... :)
>> I just wanted to share, hoping it could be useful to someone.
>> Thomas Goirand (zigo)
>> OpenStack Development Mailing List (not for usage questions)
>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev