« first day (1112 days earlier)      last day (2168 days later) » 

00:04
anyone know of any good awk static analysis tools?
00:27
@Ungeheuer : I haven't heard of such a thing. Did you find anything via an interweb search? To be really sure, I would post to the comp.lang.awk newsgroup. Those are the most knowledgable awk people (a few are active here on Qs, but not on the chat). Good luck.
did you try gawk --lint myProg? Good luck.
 
1 hour later…
01:48
@Fawkes your regex doesn't do anything to identify even or odd numbers, do you still need help with this?

basically never use sed -i twice on the same file, you can usually refactor to a single sed script and run multiple actions on the filei want to update the existing file not create a new file
awk '{ print $0, ($1 % 2 ? "odd" : "even") " number" }' file > newfile

this command is not updating the file it is creating a new file
i want to update the file
 
2 hours later…
03:30
@Fawkes the simplest solution is to move the new file on top of the old when you're done
if you have GNU Awk it has an -i inplace option
 
12 hours later…
15:06
@shellter I did. The awk script is like 240 lines, and lint produced about 22k lines of warnings/issues. It was the same three things on the same lines, but the file the awk script inspects is about 7k lines so that explains the length of lint's output.
15:30
@Ungeheuer : Does that solve your problem ? (except for 3 problems on each line, dang!). Or do you need to run dos2unix myProg(.awk) ? Good luck.
 
1 hour later…

« first day (1112 days earlier)      last day (2168 days later) »