A command like

bean-price file.beancount >> file.beancount

Will create new price directives and append them to your beancount file.
Assuming you wrote all your commodity price metadata correctly.

Just be sure to remember both > otherwise you'll overwrite your entire
beancount file. I use git to version my file so that I don't lose anything
by accidental overwriting.

On Wed, May 16, 2018, 6:51 AM Floris Kruisselbrink <[email protected]> wrote:

> Hi!
>
> I think you don't completely understand the way beancount works.
> Nothing in beancount makes changes to the .beancount-files itself, only
> you do. All the beancount-tools (including bean-price) only read the file
> and process the information in some way.
> If you want the price directives in your .beancount-file (which is totally
> reasonable), you have to copy-paste them in yourself.
>
> Op dinsdag 15 mei 2018 06:47:35 UTC+2 schreef [email protected]:
>
>> Hi,everyone!
>>     I get a problem that is when inserted those directive in .beanount
>> file:
>>
>> 2018-5-14 commodity USD
>>     price:"CNY:yahoo/CNY=X"
>>     name:"US Dollar"
>>
>>    and the prices information not automatic add into this file,like:
>>
>>
>> <https://lh3.googleusercontent.com/-9BAfE30jStY/WvpmXvlF0BI/AAAAAAAAAD0/EC-Fy59PKw8HJZwoIZ398ZcKs1ohpkyPQCLcBGAs/s1600/ScreenClip.png>
>>
>>
>>    What's wrong?What can I to do?
>>    Tell me thank your.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/87879f1e-79fa-4f75-8158-bbd13a9ae30c%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/87879f1e-79fa-4f75-8158-bbd13a9ae30c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAFFHUgv-UN_dYsVkF%2Bsmtttwycx8QVKN6jaa9FS4oxU--GGyMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to