Skip to content

Question: output formatting #2

Open
@bdmorin

Description

@bdmorin

Are there any plans to do any kind of output formatting? I tried to do something like columns, but I can't zero in on the text with multiple spaces.

 curl -s 'https://www.omdbapi.com/?s=ready&apikey=<>' | jq  '.Search[]' -rc | vj -c Year -p title -s Poster
 2018  Title Ready Player One  Type movie  imdbID tt1677720
 1994  Title Ready to Wear  Type movie  imdbID tt0110907
 2000  Title Ready to Rumble  Type movie  imdbID tt0217756
 2011  Title Ready  Type movie  imdbID tt1708532
 1993–1997  Title Ready or Not  Type series  imdbID tt0106110
 2000  Title Get Ready to Be Boyzvoiced  Type movie  imdbID tt0248036
 2015  Title I'm Not Ready for Christmas  Type movie  imdbID tt5182120
 2003  Title Ready, Steady, Charlie!  Type movie  imdbID tt0353161
 2008  Title Ready  Type movie  imdbID tt1156516
 2009  Title Ready or Not  Type movie  imdbID tt0892094

In this case, the title has variable levels of spaces so column -t just sends the whole thing in disarray. I don't know Ruby, else I'd take a shot at it.

Thanks for writing this exceptionally useful tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions