I have a fixed length text file I need to "Prune". There is a date stamp in each record. Characters 141-144 are a 4 digit year. Chars 145-146 are two digit month and 147-148 are two digit day.
I would like to use "sed" or "awk" to create a new file FROM this file for all records with a date greater than or equal to 01/01/2003 (for example)
I've looked at both "sed" and "awk" and sort of understand how they work, but can't quite figure out how to get the fields from my file when I don't really have any field delimiter.
My ultimate goal is to have a shell script that will accept 3 parmaters. "date", "inFile" and "outFile"