Quote:
Originally Posted by pixellany
With all due respect, SED is an entirely appropriate solution for this. No doubt there are some arguments to favor AWK---especially if the problem is more generalized---but that does not make the SED solution incorrect.
|
i wish to clarify, i did not say its incorrect. With proper consideration and extensive testing of regex for different scenarios, i am sure the sed solution can be better. I merely say its wrong choice. By wrong choice, i meant taking into consideration the nature of the task, its best (and easier) to compare by numbers , and not through crafting regex.
Quote:
In our motorcycle shop--almost 50 years ago--we had a mantra: "If it works, it's OK." Still true today---and will continue to be true for all time.
|
the issue with this quote is: motorcycles of the past are different than today's. Therefore, i don't believe it stands true in this day. True to computing and software technology as well. do you still run software on the 8088??
Quote:
I would be hard-pressed to think of a computing problem that has only one solution.......
|
Of course not. There can be solutions done with different languages, BUT there are simpler solutions than others.