Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-14-2010, 02:03 PM   #1
Registered: Nov 2010
Posts: 114

Rep: Reputation: 6
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?
Old 11-14-2010, 02:23 PM   #2
Registered: Nov 2010
Distribution: Debian Lenny
Posts: 136
Blog Entries: 1

Rep: Reputation: 23
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.
Old 11-14-2010, 02:33 PM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289
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:

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


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
awk question on handling *.CSV "text fields" in awk jschiwal Programming 8 05-27-2010 06:23 AM
[SOLVED] awk question vikas027 Programming 2 06-05-2008 03:18 AM
awk question cmontr Programming 12 11-19-2007 11:35 AM
Awk question blanny Linux - Software 6 05-02-2006 08:03 AM
awk question jonlake Linux - Software 2 05-04-2005 03:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 AM.

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