0

In my script I'm dumping some out some data and grep with regular expression rules, which assume that the data come in certain order. However I've found that the order of data may vary.

So instead of:

line1
line2
..
line10

I may be getting

line2
line3
line1
..
line10

Is it possible to have such a regexp that would ignore the order?

  • 6
    Please provide your grep command and the expected as well as the actual output. – pLumo May 17 at 11:58
  • I guess you are trying to sort the output? Please edit your question and include more information. – Panki May 17 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.