I have lots of EDI files (which is pretty much a single line of gibberish text) that are about 300mb/pcs.
I'm looking to pattern matching this:
`*UP*605284466346 {lots of other stuff inbetween with set length} QTY*17`
What I know is that UP is at the head of every section followed by the sku at the tail end is QTY with the quantity #.
What I'm trying to find is SKU: 605284466346 with a QTY: 17
This was my valiant attempt:
find * | grep -lir 'UP*605284466346.*QTY\*97' * | grep -v svn