4 ms·
Small typo: the example given for "--replace-limit -1" reads: abc_abc.txt | 123_abc.txt but it should probably say: abc_abc.txt | abc_123.txt Funnil
by j1elo 1y ago
Small typo: the example given for "--replace-limit -1" reads:
abc_abc.txt | 123_abc.txt
but it should probably say:
abc_abc.txt | abc_123.txt
Funnily enough, the triplet example given in the tutorial for "--replace-limit" [1] (replacing either the first or the last of "abc_abc_abc") is written so that it has the effect of driving the reader to wonder "Ok but, what about the middle one????" :)
A small idea for an alternative, more flexible option: "--replace-range", where you could use a well established syntax to represent ranges such as the one from Python and Go slices, so it's not only possible to replace from the leftmost or rightmost but also in-between.
[1]: https://f2.freshman.tech/guide/tutorial#limiting-the-number-of-replacements https://f2.freshman.tech/guide/tutorial#limiting-the-number-...