- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: AWK & SED Complete Reference
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 05:28 PM
01-20-2005 05:28 PM
I am searching for a complete reference for AWK and SED. I tried a lot in www.google.com and ITRC forums as well. But all I got was only very brief docs and tips.
Anyone can help me in finding an elaborated documentation with a link for the same or share any docs? Sure you are going to get full PTS if the doc covers my area of interests.
Thanks in advance.
Regards,
Syam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 05:33 PM
01-20-2005 05:33 PM
Re: AWK & SED Complete Reference
http://www.tldp.org/LDP/abs/html/sedawk.html
http://www.geocities.com/kmuthu_gct/sed_awk_tips.html
http://builder.com.com/5100-6372_14-1050917.html
More read awk,sed man page word by word.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 05:43 PM
01-20-2005 05:43 PM
Re: AWK & SED Complete Reference
I have already gone through, such tips. I need a document in detail about the same. I will need to write a some complicated scripts some times. So I am planning to learn in deep. So any docs available with you?
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:02 PM
01-20-2005 06:02 PM
Re: AWK & SED Complete Reference
Do yourself a favor and learn PERL instead!
2c
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:22 PM
01-20-2005 06:22 PM
Re: AWK & SED Complete Reference
I dont have a strong programming background. I rate myself as a beginner in programming. So can I start with Perl?
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:22 PM
01-20-2005 06:22 PM
Re: AWK & SED Complete Reference
the awk language was written by Aho, Weinberger and Kernighan. They also wrote a good book about it.
If you search amazon you will find this book:
http://www.amazon.com/exec/obidos/tg/detail/-/020107981X/qid=1106291867/sr=1-6/ref=sr_1_6/104-1131083-0285552?v=glance&s=books
Some years ago i used a older version of this book and it helped me a lot.
But if you need more then field orientated (awk) and line orientated (sed) programming. Then i would go for pearl, which can everything sed and awk can do and a lot more.
Regards
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:32 PM
01-20-2005 06:32 PM
Re: AWK & SED Complete Reference
refer some unix shell programming books,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:38 PM
01-20-2005 06:38 PM
Re: AWK & SED Complete Reference
I managed myself to find out lot of free reference in the following place.
http://web.info.com/_1_OEETYD02NSSEFF__infocom.us2/search/web/Awk%2BManual/1/15/1/-/1/0/1/1/1/1?&cmp=1597&tpxnws=1
Now I am searching for SED.
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 06:42 PM
01-20-2005 06:42 PM
Re: AWK & SED Complete Reference
I agree with Hein: go for Perl.
But on Unix you definitely need some basic skills of AWK & SED. Don't worry about SED, if you know VI, then you know probably enough about SED.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 07:08 PM
01-20-2005 07:08 PM
Re: AWK & SED Complete Reference
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 07:31 PM
01-20-2005 07:31 PM
Re: AWK & SED Complete Reference
ONLINE DOCUMENTATION
sed and awk are great, for what they're created for. They're old and rusty, and don't allow more complex stuff to be written *and* maintained easily. (yes, they allow complex stuff, but don't try to maintain 400 line sed or awk scripts)
perl comes with the *complete* documentation online (source of the docs is 4.5 Mb!), in whatever form you prefer: man, pod, html, ... and had converters for the man pages and utilities to be even more efficient: forgot how sysseek works?
# perldoc -f sysseek
Forgot the options to start perl with?
# man perlrun
Want a tutorial about perl regular expressions?
# man perlretut
etc, etc. All of that not available for awk and sed.
I still use awk and sed, but once I want to glue, filter, join, combine, or distribute data(bases) I use perl. Perl also has CPAN: Comprehensive Perl Archive Network, an enourmous repository of plug-in modules that allow you to you perfect solutions from others and don't have you reinvent a wheel. Most wheels are already invented.
Perl also gives two scripts (a2p and s2p) that convert valid awk (a2p) and sed (s2p) to perl, so if you can read/maintain perl, and you do not understand a legacy piece of awk, just run it through a2p, read the perl code and understand what the awk script was supposed to do
For all three languages, I recommend to read Jeffrey Friedl's "Mastering Regular Expressions", which covers all available regular expressions currently used in the unix world: awk, sed, grep, perl, python, vi, emacs, java, .net, posix, ... ( http://regex.info/ )
Books:
awk: http://www.oreilly.com/catalog/awkprog3/index.html
awk & sed: http://www.oreilly.com/catalog/sed2/index.html
perl: http://www.oreilly.com/catalog/pperl3/
regex: http://www.oreilly.com/catalog/regex2/index.html
Enjoy, Have FUN! H.Merijn
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 07:35 PM
01-20-2005 07:35 PM
Solutionfound this one but have no idea how legal this page is:
http://www.hk8.org/old_web/
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 08:19 PM
01-20-2005 08:19 PM
Re: AWK & SED Complete Reference
I already got a Complete PDF of AWK from http://www.cs.uu.nl/~piet/docs/nawk/
But still you did a great help for me. I had gone through this link 2-3 years back when I tried to find out books on html. But When I tried today for scripting I cudn't.
Procura,
You were also in the right track but Your First links on regular expressions are not in english language.
other links you mentioned are giving only previews.
Any way thanks for all your helps.
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 09:04 PM
01-20-2005 09:04 PM
Re: AWK & SED Complete Reference
This is about *books* though, and Mastering Regular Expressions is a book I indeed highly recommend as a BOOK. The other books I mentions are easily replaced with on-line references.
This Friedl book however, you will probably use as a reference in which you want to read, re-read, and re-re-read paragraphs to fully understand the content, and for that I prefer a dead-tree version
Enjoy, Have FUN! H.Merijn [ A complete Perl addict ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2005 03:13 AM
01-24-2005 03:13 AM
Re: AWK & SED Complete Reference
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 11:08 AM
01-30-2005 11:08 AM
Re: AWK & SED Complete Reference
I have probably given the same advice to people over the years who are looking for a complete reference to Sed and AWK. In my opinion, the Oreilly Sed and AWK book is still the best reference for System Programmers. It covers all areas of sed and awk with very good and well documented examples. All the examples listed in the book can be downloaded from the Oreilly ftp server.
Cheers,
Joseph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 10:25 PM
02-04-2005 10:25 PM
Re: AWK & SED Complete Reference
Your thread is very inspiring. Since you are looking for resources for sed. You may have already found good links. I came across the following sed link: FYI
http://en.wikipedia.org/wiki/Sed
Very informative and resourceful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2005 05:59 AM
02-06-2005 05:59 AM
Re: AWK & SED Complete Reference
Thanks for your reply.
As I have mentioned in my last reply, I already got resources for awk..Looking for sed complete reference. All I am getting is bits and bytes...No complete docs I am getting.
Jsung,
Thank you..But your post also a one page document. As you know SED is very vast..Looking for a detailed documentation.
regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 06:02 PM
02-07-2005 06:02 PM
Re: AWK & SED Complete Reference
Did you try External Links on that link?
e.g.
Major sources for sed scripts, files, usage (http://sed.sourceforge.net)
The sed FAQ (http://sed.sourceforge.net/sedfaq.html)
Handy one-line sed scripts (http://sed.sourceforge.net/sed1line.txt)
A home page for sed, some focus on Windows/DOS (http://www.pement.org/sed/)
Paper describing Turing machine in sed, and its universality (http://sed.sourceforge.net/grabbag/scripts/turing.txt)
Turing machine in sed, the actual script (http://sed.sourceforge.net/grabbag/scripts/turing.sed)
Super-sed (http://www.gnu.org/directory/text/editors/super-sed.html)
sed Sokoban (http://aurelio.net/sed/sokoban/)
Indeed these pages are links to links. They are great sed links, but you may have gone through most of them.
By the way, while searching for good learning resources for python, I found this link on amazon book reviews:
"Dive into Python" by Mark Pilgrim
can be downloaded from the following web site: diveintopython.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 03:25 AM
02-08-2005 03:25 AM
Re: AWK & SED Complete Reference
I wonder why none of the above mentioned is showing.."This page cannot be displayed"..
None are working..!!
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 07:42 PM
02-08-2005 07:42 PM
Re: AWK & SED Complete Reference
Sorry for the confusion.
I tried and found that the "page not found" error is caused by the close (right) parenthesis which follows each URL.
You mentinoed you are looking for more than just one-liner sed document. I checked each link. These links are great sed links but they are probably for beginner to intermediate level users.
Before you find better documentation, give it a shot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 07:53 PM
02-08-2005 07:53 PM
Re: AWK & SED Complete Reference
Actually, I found this link should be one of the doors to the whole Internet resources for sed.
http://en.wikipedia.org/wiki/Sed
It is not just a one-page tips & tricks. Have fun.
jsung7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 03:40 AM
02-09-2005 03:40 AM
Re: AWK & SED Complete Reference
You have done it ..!!!
Thanks a lot.
Thanks to all who responded.
Closing the thread.
Regards,
Syam