LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-11-2010, 04:49 AM   #1
sixpenny
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
Ask for awk example code


I'm Linux newbie, ask for some example for AWK. Could anyone give me some example code?


Thanks

Penny
Tipcat Interactive
 
Old 10-11-2010, 05:05 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,243

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Code:
awk '1' file
 
Old 10-11-2010, 05:09 AM   #3
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by sixpenny View Post
I'm Linux newbie, ask for some example for AWK. Could anyone give me some example code?
Go read the documentation and learn how it works. That's the most logical thing to do.
 
Old 10-11-2010, 05:10 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and Welcome to LinuxQuestions,

What exactly are you referring to when you ask for example code? Examples of how to use awk? You can have a look at these oneliners:
Awk oneliners
and this great tutorial to learn Awk:
http://www.grymoire.com/Unix/Awk.html

Have fun with Linux.

Kind regards,

Eric
 
  


Reply


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
[SOLVED] How to run code on a certain line number in AWK MTK358 Programming 6 05-09-2010 10:50 AM
[SOLVED] awk code help for displaying file contents ashok.g Programming 13 12-14-2009 01:55 AM
awk code explanation pete1234 Programming 2 10-14-2006 08:05 PM
need clarification in this reg exp/awk code mselvam Linux - General 1 07-08-2005 04:57 PM
awk code on linux suchi_s Programming 6 01-14-2005 12:02 AM


All times are GMT -5. The time now is 05:57 AM.

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