This might be a simple question but I can't figure it out for the life of me.  I have a file called keyout.dat which looks like this:Title1Variable-999-9990.2340.123-999-9990.555The file goes on like this for 500,000 lines.I want to make a new file where all the -999 are set to 0 and everything else is set to 1.  I'm sure it's a simple command but I'm having trouble getting it to print to another file.Any help would be great.
Using AWK to convert numbers to 0 or 1
shell;awk