The command line complains about the first printf string format in the third operation as being a problem. I've also tried playing with the --non-decimal-data, and $4 + 0 operations but this example is the farthest that the code gets to succcess before the command line complains:(partial)FNR=1 not enough arguments to satisfy format string(with the caret pointing to the first %s) and the message "ran out for this one".

The command line complains about the first printf string format in the third operation as being a problem.

printf() uses the format printf("<format>", <value>);your printf function has all the format tags, but no value tags, that's why it's running our of arguments.Why would you print everything twice anyway? (print and printf?)If you have GNU awk, there is a strtonum() function available to convert strings to numbers.I think the following should help you out:

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum