LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-21-2011, 09:09 AM   #1
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 289

Rep: Reputation: 10
Why would anyone still use awk instead of perl?


Why would anyone still use awk instead of perl?
 
Old 03-21-2011, 09:26 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Is there any context surrounding this question? It is never this black and white.

In general it is best to have many tools in your toolbox, and to use the tool that best fits the job. The practical side is that most people tend to go with what they know best (be it awk or perl in this example).

I for one would not like to be limited to either of the 2 (or any other tool for that matter).
 
Old 03-21-2011, 09:26 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Because it's easier to pump out an awk oneliner than a perl.
 
Old 03-21-2011, 09:44 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

A simple question deserves a simple answer! Simplicity!

KISS!
 
Old 03-21-2011, 09:46 AM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,788
Blog Entries: 1

Rep: Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340Reputation: 1340
Because AWK has been around since the 70's and was heavily developed and improved over all of those years since. Perl came out 10 years after.

Therefore, IMO, it follows that, more than likely, there are more people that know AWK.
 
Old 03-21-2011, 09:51 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
Whilst I agree with all the previous sentiments, I would most agree with druuna (which in turn encompasses most of the others).
To me its a bit like saying why choose one car over another. Hard to compare a mini to a range rover but they both get you from a to be on the road.
 
  


Reply


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
replacing awk with perl casperdaghost Linux - Newbie 1 07-16-2010 07:56 AM
perl/awk question cmontr Programming 21 10-16-2009 10:04 AM
perl or awk question cmontr Programming 6 09-16-2009 10:36 PM
awk / perl script help cmontr Programming 3 05-22-2008 05:15 PM
maximum value using perl or awk!! visitnag Linux - Newbie 3 04-11-2008 01:51 PM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration