On Fri, Dec 7, 2012 at 2:23 AM, Steve Brooks steveb@mcs.st-and.ac.ukwrote:
Why are you doing all that piping and grepping? And the -F" " confuses me...oh, I see. First, whitespace is the default field separator in awk. Then, are you asking if there's a line with a "." in it, or just any non-whitespace? If the latter... mmm, I see, you *really* don't
understand
awk.
Ok Mark very nice of you to help Craig. He does not claim to be an expert in "awk" or even competent ---> Which is obviously why he is asking for help in the first place. No need for the sarcasm and to belittle the poster. Remember lots of people looking for help will be directed to this answer and your help could be much appreciated....
Regards,
Steve _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hello there!
The best Help for awk beginners is to implement it with other tools for now if it's urgent, and debug your syntax and regex code.
Start here: http://www.unix.com/man-page/linux/1/sed/
You may also want to try and print awk to tty, start by that to debug your code until you find the solution
http://www.staff.science.uu.nl/~oostr102/docs/nawk/nawk_92.html
your main issue was, that you are asking about nginx.conf , which is not part of the stock installation, and your file can look like anything depending on custom configuration.