I need to resolve next problem, I have a unix txt file,
I need to verify that it is to ordered for a key , in this case CUSTOMER, I need to do it with awk , it is shows an example
Very easy to do, and several ways to accomplish.
But, why the requirement for 'awk'?
Whenever I see a question with a solution requirement, it makes me think that it is homework.
Please explain the real-world issue here, or post this in the Homework Forum.
Thank for answer. my enterprise solicited validate a txt file in unix, but this file must be ordered , if it is not ordered, not validate
the solution too can be other unix command,
thank
I do not want to sort the file, just want to make sure it is neat, if not ordered not to continue the validation process, it is understood, I think I explained very well
sorry