WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: awk seems broken?  (Read 887 times)

Offline mung

  • Newbie
  • *
  • Posts: 10
awk seems broken?
« on: April 20, 2022, 02:26:18 PM »
Not sure what is cause but I checked the script with gamk and mawk and bwk and it seems to run okay on those.
But the latest picore awk fails not giving the correct RLENGTH and RSTART from a match?

I have attached script and input data.

Anyone have any advice or suggestions?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: awk seems broken?
« Reply #1 on: April 21, 2022, 01:30:26 AM »
By default piCore comes with BusyBox awk. It is most likely not fully compatible to its big brother, checck BusyBox site.

You can install gawk from the repo.
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."