954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Bash Scripting vs AWK GAWK

Hi.
I'm new to linux.
I have a question....
What is the difference between BASH Scripting and AWK?
When would I use one over the other?

cpp_noobsauce
Newbie Poster
17 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Hey there,

In simple terms, bash is a Unix/Linux shell and scripting in it is just like using the shell in a more sophisticated (or readable ;) way. Awk is a standalone utility that you can launch from bash.

Bash can pretty much do anything (if you're creative) but awk is very well suited to rearranging fields and records in a files (I think it was mostly based on this when it first came out. It does have many features that define it now as a programming language, by strict standards)

Hope that helped :)

, Mike

eggi
Posting Pro in Training
400 posts since Oct 2007
Reputation Points: 102
Solved Threads: 47
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You