Code and comments

  • it_a_me@literature.cafe
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    I’ve gotten tired of weird regex stuff in awk, sed, and grep, so I’ve moved to perl -E for all but the most basic of things.

    • bizdelnick@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      In most cases extended POSIX regexes are enough and looks the same as perl regexes.

      I also used perl until I needed to write highly portable scripts that can be run on systems without perl interpreter (e.g. some minimal linux containers). Simple things are also simple to do with grep/sed/awk, more complex things can be done with awk but require a longer code in comparison with perl.