Skip to main content
deleted 4 characters in body
Source Link

Off by one when searching for solutions. I managedThis seems to get what i want with these (inspired by stackoverflow/1831722):work.

/^.{234
    if(substr($0,234}${ 235, 12) ~ value}/)
    {
        print "5"4 - " substr($0, 235, 12);
        next
    }
    else
    {
        print "4 - NOK"
        next
    }
}

Off by one when searching for solutions. I managed to get what i want with these (inspired by stackoverflow/1831722):

/^.{234,234}${value}/
{
    print "5 - " substr($0, 235, 12);
}

This seems to work.

{
    if(substr($0, 235, 12) ~ value)
    {
        print "4 - " substr($0, 235, 12)
        next
    }
    else
    {
        print "4 - NOK"
        next
    }
}
Post Undeleted by vesperto
Post Deleted by vesperto
Source Link

Off by one when searching for solutions. I managed to get what i want with these (inspired by stackoverflow/1831722):

/^.{234,234}${value}/
{
    print "5 - " substr($0, 235, 12);
}