LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   awk question (https://www.linuxquestions.org/questions/linux-newbie-8/awk-question-844221/)

ghantauke 11-14-2010 02:03 PM

awk question
 
can awk do anything else besides printing? i've only seen the '{print}' action being used. are there any other actions that awk can do?

barriehie 11-14-2010 02:23 PM

I use gawk, which is very similar to awk. It's a stream editor and without it there are many things on my machine that just wouldn't happen!

You can find out more about it here.

H_TeXMeX_H 11-14-2010 02:33 PM

Well, yes it can do a lot. Mostly you should use awk when dealing with data files arranged in columns or lists. Look up some tutorials:
http://www.grymoire.com/Unix/Awk.html

Awk is a scripting language, BTW. It's a language, not just print.


All times are GMT -5. The time now is 12:34 AM.