LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-06-2007, 11:44 PM   #1
anguyendapooh
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
most frustrating trying to learn gawk < utility>


Hey,

can someone tell me what's easiest way to learn
awk - gawk < command >

appreciate!!
 
Old 03-07-2007, 02:22 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by anguyendapooh
can someone tell me what's easiest way to learn
awk - gawk < command >
i'd say the easiest way would be to use a good tutorial written by someone who's already mastered it...
 
Old 03-07-2007, 04:28 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I would always learn something like this be actually using it. Start by writing some very simple scripts.

Here is one of a zillion hits on Google: http://www.grymoire.com/Unix/Awk.html
I have used the SED tutorial form the same site and it is excellent.

Also, go to http://tldp.org and get "Bash Guide for Beginners" by Machtelt Garrels
 
Old 03-07-2007, 04:29 AM   #4
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Maybe I'm a bit to hardcore, but I learned a lot with the info documentation.

Just call it with info gawk and take a glance at it.
There's lot's of stuff, examples, code and some basic stuff.
If you already have some basic knowledge of shell scripting this should be enough.

If you don't like the default interface of the Texinfo manuals, just apt-get install pinfo, this proggy displays the info pages as HTML like in w3m or lynx.

You can also use Konqueror to browse it from your KDE desktop. Gnome has also an interface for this, but I can't stat how it's called.
 
Old 03-07-2007, 03:14 PM   #5
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Many years ago I learned awk, sed, shell scripting. Then I found Perl, and thought, that's what I should have been doing from the beginning!

Probably that's not what you wanted to hear; after all you're interested in awk. I'd go with info gawk then.
 
Old 03-09-2007, 06:30 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
I third info gawk, as long as you can view it in HTML. (Using the raw info system would almost be enough to convince me to learn perl).

I always use Konqueror to view info, the syntax is: info:gawk or ##gawk. Just enter the above in the "Location:" box. (The 'g' is necessary.)

As you might expect the general case is: info:<command> or ##<command>.

BTW, man:<command> or #<command>, will get you man pages.

A really nice feature of the Konqueror HTML display, is that the info system structure all becomes regular links & can be opened in multiple tabs. (Right & middle click are your friends. ). Also, in the man page conversion many references to other man pages become useable links.


I sometimes call these pseudo-protocols, but the real name is "Kioslave". There are 2 lists of them in the KDE help system: one, under "Kioslaves" in the main contents; the other, on a page titled "IO-Slaves" found using the "help:" kioslave -- help:kioslave.

These lists are not quite identical.

Some of the help is good, some rudimentary.


Last edited by archtoad6; 03-09-2007 at 06:33 AM. Reason: remove blank lines at end
 
Old 03-10-2007, 02:13 PM   #7
anguyendapooh
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
thank you for all your referrences
 
Old 03-12-2007, 05:57 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Please tell us what you did, what worked for you, & what progress you're making.
 
Old 03-13-2007, 12:10 AM   #9
anguyendapooh
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
thank you guys..i get it now
 
Old 03-13-2007, 08:18 AM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
We do appreciate the thanks, but please also tell us what worked for you.

I, for one, do not post just to help the current questioner, but also to help create a body of solutions. If you don't tell us which proposed solution worked for you, then you haven't done your part in this process. It's a small repayment for our time & thought.
 
  


Reply

Tags
awk, gawk, help, info, kde, konqueror, man


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
where is curl and gawk ???????? bozart ROCK 11 10-23-2005 10:41 PM
Eh? A 'gcc' dependency in 'gawk'? sundialsvcs Linux From Scratch 3 07-27-2005 08:55 PM
gawk question luxpops Programming 1 09-12-2004 04:46 AM
How to search for asterisks using gawk dtheorem Linux - General 1 03-05-2004 02:35 PM
FS=? in gawk realos Programming 2 05-28-2003 07:30 PM


All times are GMT -5. The time now is 11:05 PM.

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