Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: awk tutoria...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 11 Topic 2222 of 2236
Post > Topic >>

Re: awk tutorial confusion

by Bruce Barnett <spamhater201+spamtrap@[EMAIL PROTECTED] > Apr 17, 2008 at 08:02 PM

r <inpost@[EMAIL PROTECTED]
> writes:

> In terms of teaching a "versatile approach", whilst this may be
> beneficial to the reader already proficient in computer programming,
> it is not appropriate to the novice typically most attracted to a
> 'tutorial' in the first instance.

Good point, and it's actually a hard problem. To teach sed you need to
understand regular expressions, but to use them you need to understand
how to quote regular expressions. And you neded to know a shell
language.  So it becomes a chicken and egg problem. My tutorials are
set up to start with learning how to use quotes and strings. That's
why it's the first topic.

When I talk about using the "versatile approach" I do this because
understanding how quotes work is essential to shell programming.  It's
no wonder passing variables into a string is covered in several parts
of the FAQ.


And as a beginner, I can teach you one way to pass a variable into
sed, and a second to pass it into AWK. Or alternately, I can teach one
versatile method that words for both. 

In my view, it's easier on the beginner to learn one method than works
everywhere, than to teach two methods.

> On numerous occasions I am reading instructions "to continue reading"
> and "you have to read the next few paragraphs". This contradicts the
> essence of a tutorial for a novice such as I: by definition I should
> be able read and comprehend a tutorial from beginning to end in a
> logical, sequential manner.

I had not anticipated someone following my AWK tutorial with no
knowledge of shell programming. Sorry about that. I has assumed you
would get to section 3 (of 68) first before you write your first ever
shell script.


Bruce
** Posted from http://www.teranews.com
**




 11 Posts in Topic:
awk tutorial confusion
r <inpost@[EMAIL PROTE  2008-04-14 01:53:41 
Re: awk tutorial confusion
Ed Morton <morton@[EMA  2008-04-14 06:00:16 
Re: awk tutorial confusion
Ed Morton <morton@[EMA  2008-04-14 06:21:55 
Re: awk tutorial confusion
Bruce Barnett <spamhat  2008-04-16 15:13:08 
Re: awk tutorial confusion
Ed Morton <morton@[EMA  2008-04-16 17:12:31 
Re: awk tutorial confusion
Bruce Barnett <spamhat  2008-04-17 20:11:28 
Re: awk tutorial confusion
Ed Morton <morton@[EMA  2008-04-17 23:48:23 
OT: Re: awk tutorial confusion
Ed Morton <morton@[EMA  2008-04-17 00:22:15 
Re: awk tutorial confusion
Bruce Barnett <spamhat  2008-04-16 14:28:50 
Re: awk tutorial confusion
r <inpost@[EMAIL PROTE  2008-04-16 14:42:52 
Re: awk tutorial confusion
Bruce Barnett <spamhat  2008-04-17 20:02:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 11:41:29 CDT 2008.