Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

add an option not to write query into output file #3

Closed
NeoHuang opened this issue Mar 3, 2016 · 4 comments
Closed

add an option not to write query into output file #3

NeoHuang opened this issue Mar 3, 2016 · 4 comments

Comments

@NeoHuang
Copy link

NeoHuang commented Mar 3, 2016

currently the output file always contains the query as the first line. if the output file size is big, trim the first line will take another extra long time.

consider not write query by default into output file and use an option only when needed

@wellle
Copy link
Member

wellle commented Mar 3, 2016

@NeoHuang: Do you know about tail -n +2 result | jq ...?

@NeoHuang
Copy link
Author

NeoHuang commented Mar 3, 2016

I know it. but if the file size is very large, even tail -n +2 will take long time.

@wellle
Copy link
Member

wellle commented Mar 3, 2016

But it doesn't make a difference. Observe for yourself:

head largefile

Is as instant as

tail -n +2 largefile | head

You don't need to wait for the tail to finish to work on its result.

@ferki
Copy link
Contributor

ferki commented Jul 14, 2016

There's a --header|--noheader|--no-header CLI option now. In the configuration file it can be specified as header:0|1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants