# Mixed rawk and awk code $increment = (x) -> x + 1; $format_line = (line_num, text) -> "Line " line_num ": " text; # Regular awk code mixed in BEGIN { print "=== Mixed rawk and awk test ===" } # Process each input line { # Use rawk functions incremented_line = increment(NR) formatted = format_line(NR, $0) # Regular awk processing if (length($0) > 10) { print formatted " (long line)" } else { print formatted " (short line)" } } END { print "=== End of processing ===" print "Total lines processed:", NR }