wish you could edit old posts. Anyway, I got it to run at least, using the #!/bin/bash then using a $@ at the end after the last quote. However, now it says
(FILENAME=<input2> FNR<last line of second input>) fatal: division by zero attempted
I tried running the script using the awk -f <source> <input1file> <input2file>
and it gives me an invalid char error pointing to the ' after the awk in the scipt
Hey guys, I'm new to awk, basically I have an input file, two columns, first I want to ignore rows with the first column that start with a certain string, and with the rest, I want to find the average. How would I do this?
e.g
8113442352 56
8325423535 99
8114525445 80
4526693345 97
4526426535...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.