Try and review tools. - Printable Version
+- nixers (
+-- Forum: General (
+--- Forum: Community & Forums Related Discussions (
+--- Thread: Try and review tools. (/Thread-Try-and-review-tools)

Try and review tools. - seninha - 21-02-2021

One of the activities proposals was to try different tools each week and review them. So, let's do this.

There are good tools we can review, for example the ones listed on the kmandla's list and on the one thing well list.
Freem gave the idea on IRC for the first tools we review to be programs created by one of us. We have good developers among us, and good software as well.

What do you think? Which tool can we review first?

RE: Try and review tools. - venam - 21-02-2021

I made a wiki page here.

We can start with some of pranomostro's mini-tools:
  • skip — skip text between two strings
  • uu — unsorted uniq that does not lock up your pipeline

RE: Try and review tools. - seninha - 27-02-2021

skip is a simple but handy tool.
I realized I have implemented skip a bunch of times when parsing stuff with awk. For example, tbgen, my verilog testbench generator, has to skip over C-style comments when parsing verilog.

I extracted the skipping code from tbgen and wrote an awk version of pranomostro's skip: here it is

As a bonus for using awk, regular expressions just work.

RE: Try and review tools. - venam - 27-02-2021

skip is pretty useful, it can help do things that would be complicated with sed, awk, or cut. However, as phillbush has shown, it's still relatively easy to implement.

It remains to be seen if I'll remember this tool even exists the next time I have to do a tasks that requires removing text within two strings.