We help IT Professionals succeed at work.
Get Started

Should I learn AWK for text manipulation?  Or just skip and go straight to Python, Ruby, or Perl?

620 Views
Last Modified: 2012-05-09
I've been doing a lot of text manipulation lately, and for most of my day-to-day tasks I've been able to clunk along using grep and sed with the appropriate pipes.  On occasion I'll write a quick one-off C/C++ program if I can't figure out how to parse a file using those tools.

Lately I've had to process some more sophisticated files (such as performing pattern matching across multiple lines), and I'm finally coming to grips with the fact that I need to learn a text manipulation language.  It will be a welcome addition to my mental tool belt.

I know there are a host of contenders out there (Python, Ruby, Perl, and AWK come to mind).  AWK seems nice because it's purpose-built for text manipulation.  At the same time, I understand that Python or Ruby can do text manipulation *and* build sophisticated applications.  And then there's Perl, which seems so massive and powerful that I'm not sure how to weigh it against the other options.

Is there any significant reason to learn AWK *in addition to* or *instead of* one of these other languages, if I just want to do text processing?

Thanks!
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2007
Commented:
This problem has been solved!
Unlock 3 Answers and 7 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE