Narrowing the prices command

23 views
Skip to first unread message

Craig Earls

unread,
Jul 14, 2023, 3:16:43 PM7/14/23
to ledge...@googlegroups.com
After 13 years I thought I knew all of the ledger tricks I needed.  I recently bought some "Ford Motor Company" stock, ticker "F".  Some of my ancient scripts rely on the "ledger prices" command.  Turns out that "ledger prices F" return prices for EVERY commodity that has an 'F' in the symbol.  I tried quoting it, adding leading and following space and a few other things and I cannot get it to return prices only for symbol "F".  Any ideas ?

--
Craig, Corona De Tucson, AZ
missile_flyout
enderw88.wordpress.com

Ismael Bouya

unread,
Jul 14, 2023, 3:21:39 PM7/14/23
to ledge...@googlegroups.com
Try "ledger prices '^F$'" ;)
(FYI: works for accounts too)

(Fri, Jul 14, 2023 at 10:40:07AM -0700) Craig Earls :
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAKs9TOJ_2%3D%2BH4cawj9JYZRkUYKOKhWDJKUQnLw%3DjQ%2B%3DfBW%3DTjg%40mail.gmail.com.
> [1][cid:image0...@01D244B7.4287B6A0]
> [2]enderw88.wordpress.com
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [3]ledger-cli+...@googlegroups.com.
> To view this discussion on the web visit
> [4]https://groups.google.com/d/msgid/ledger-cli/CAKs9TOJ_2%3D%2BH4cawj9JYZRkUYKOKhWDJKUQnLw%3DjQ%2B%3DfBW%3DTjg%40mail.gmail.com.
>
> References
>
> Visible links
> 2. http://enderw88.wordpress.com/
> 3. mailto:ledger-cli+...@googlegroups.com
> 4. https://groups.google.com/d/msgid/ledger-cli/CAKs9TOJ_2%3D%2BH4cawj9JYZRkUYKOKhWDJKUQnLw%3DjQ%2B%3DfBW%3DTjg%40mail.gmail.com?utm_medium=email&utm_source=footer




--
Ismael
Reply all
Reply to author
Forward
0 new messages