WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline mung

  • Newbie
  • *
  • Posts: 10
awk seems broken?
« on: April 20, 2022, 11:26:18 AM »
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 20, 2022, 10:30:26 PM »
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.
Béla
Ham Radio callsign: HA5DI

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