Este contenido no está disponible en el idioma seleccionado.

Chapter 6. Formatting Hammer output


You can modify the default formatting of the output of Hammer commands to simplify the processing of this output by other command line tools and applications.

Hammer provides several output formats:

  • table – generates output in the form of a human readable table (default).
  • base – generates output in the form of key-value pairs.
  • yaml – generates output in the YAML format.
  • csv – generates output in the Comma Separated Values format. Output in CSV format is useful for example when you need to parse IDs and use them in a for loop.

    To define a custom separator, use the --csv and --csv-separator options instead.

  • json – generates output in the JavaScript Object Notation format.
  • silent – suppresses the output.

Procedure

  • Set the output format with the --output option:

    $ hammer --output output_format organization list
  • Define a custom separator for the CSV format:

    $ hammer --csv --csv-separator ";" organization list
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de la documentación de Red Hat

Legal Notice

Theme

© 2026 Red Hat
Volver arriba