Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
awk syntax error
Name: pratyusha Date: July 6, 2009 at 13:54:30 Pacific OS: AIX Subcategory: General
Comment:
I have the following awk command It gives a syntax error near "if" statement below.
Based on the value of s, if it greater or equal to 0, the record need to be replaced with '$1.$2.$3.$4," 0.0.0."s'
Any comments ?
awk -F"." '{s=$8-$4 if (s >= 0) print $1.$2.$3.$4," 0.0.0."s }' g1 >g2
Summary: Ok I'm not sure how this happened but for some reason I cannot view my help files in visual studio .net 2003. I get 'Invalid Syntax Error' and 'This page cannot be displayed'. I can still see the cont...
Summary: I'm getting a syntax error in my read statement?! Read Name$, Hours, Rate I'm sharing variables... the variables are spelled the same throughout the program I don't understand what's going wrong but i...
Summary: Hi, I am getting a syntax error in my awk program near else if statement. Can anyone suggest whats this error? is else if statement used correctly here? let me know if anyone has better logic to imple...