BurntSushi / fst

Represent large sets and maps compactly with finite state transducers.
The Unlicense
1.78k stars 126 forks source link

how map works ? #166

Closed setop closed 9 months ago

setop commented 9 months ago

I do fst map <({ echo foo,1 ; echo bar,2 ; echo baz,3 ; }) a.fst. Then fst fuzzy a.fst bir. I get bar but not 2. What do I miss ?

BurntSushi commented 9 months ago

Have you looked at fst map --help? It documents a -o/--outputs flag.

setop commented 9 months ago

Oh, you mean fst grep --help. Yes, I see it. Thanks

BurntSushi commented 9 months ago

I typed fst map --help, but I meant fst fuzzy --help. It's there:

$ fst fuzzy --help | rg outputs
    -o, --outputs    When set, output values are shown as CSV data.