regexp-cut

Use awk to provide cut like syntax for field extraction (by learnbyexample)

Regexp-cut Alternatives

Similar projects and alternatives to regexp-cut

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better regexp-cut alternative or higher similarity.

regexp-cut reviews and mentions

Posts with mentions or reviews of regexp-cut. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-26.
  • Ask HN: What do you use to make CLIs?
    9 projects | news.ycombinator.com | 26 Aug 2022
    I use a lot of CLI tools, but haven't written many for myself. Mostly, aliases/functions and some scripts in Bash/Python.

    Extract details for command options from man/help: https://github.com/learnbyexample/command_help/blob/master/c...

    cut-like syntax for field manipulations with regexp, negative indexing, etc: https://github.com/learnbyexample/regexp-cut/blob/main/rcut

    simple calculator using python syntax: https://learnbyexample.github.io/practice_python_projects/ca...

  • Tuc – When cut doesn’t cut it
    5 projects | /r/commandline | 13 Jun 2022
    rcut - my own bash+awk script, supports regexp delimiters, field reordering, negative indexing, etc
  • Tuc – when cut doesn’t cut it
    7 projects | news.ycombinator.com | 13 Jun 2022
    Nice, especially the format output.

    See also:

    * hck (https://github.com/sstadick/hck) - close to drop in replacement for cut that can use a regex delimiter instead of a fixed string

    * rcut (https://github.com/learnbyexample/regexp-cut) - my own bash+awk script, supports regexp delimiters, field reordering, negative indexing, etc

  • Show HN: Hck – a fast and flexible cut-like tool
    2 projects | news.ycombinator.com | 10 Jul 2021
    I saw about `hck` recently on twitter, was impressed to see support for compressed files. From the current todo list, I hope complement is implemented for sure.

    I see Negative index is currently "unlikely". I'm writing a similar tool [0], but with bash+awk. I solved the negative index support with a `-n` option, which changes the range syntax to `:` instead of `-` character.

    My biggest trouble came with literal field separator [1], because FS can only be specified as a string in awk and backslash is a metacharacter for both string and regexp.

    [0] https://github.com/learnbyexample/regexp-cut

    [1] https://learnbyexample.github.io/escaping-madness-awk-litera...

  • A note from our sponsor - SaaSHub
    www.saashub.com | 3 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic regexp-cut repo stats
4
15
1.8
almost 3 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com