LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-13-2009, 02:46 AM   #16
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241

Quote:
Originally Posted by pixellany View Post
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.
 
Old 12-13-2009, 09:47 AM   #17
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
do you still run software on the 8088??
Absolutely!!--if it gets the job done. (Where can I find one?)

Quote:
the issue with this quote is: motorcycles of the past are different than today's.
This only means that finding something that's OK just requires more effort.

There's another aspect to this: The "best" tool also has to include the user's skill set----if I can do SED from memory, but I have to go looking for the AWK syntax, then SED (for me) is better.
 
Old 12-13-2009, 07:38 PM   #18
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241
Quote:
Originally Posted by pixellany View Post
Absolutely!!--if it gets the job done. (Where can I find one?)
but then you are not only doing it for yourself. In the real world, you communicate with different sources, maybe the clients your business is working with. And with new technology, you simply have to keep up.

Quote:
This only means that finding something that's OK just requires more effort.
why more effort, when you can do it in less than double time.

Quote:
There's another aspect to this: The "best" tool also has to include the user's skill set----if I can do SED from memory, but I have to go looking for the AWK syntax, then SED (for me) is better.
true, but that's only 1 aspect. There are many more other factors that makes a good tool. clean syntax for readability, the ability to include modules/libraries, good programming data structures, debugging tools..etc etc..
 
  


Reply

Tags
sed


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sed replace string problem. zcrxsir88 Programming 4 02-11-2009 11:48 AM
SED replace string by occurrence uttam_h Programming 5 03-05-2008 10:02 PM
sed replace string octeto Programming 4 06-06-2007 02:09 AM
How can I replace this string with another using sed? dave4545 Programming 7 01-27-2006 10:58 AM
[sed] replace string? chuanyung Programming 3 03-11-2004 08:42 PM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration