2 questions from book sed and awk programming 
Author Message
 2 questions from book sed and awk programming

I have two questions from Sed and Awk programming from chapter 12 page 416,
which I cannot find the answers to.

1) Try a couple of questions that tests when rvalues or lvalues are used in
the increment and decrement operators?

2) When do you think that the $0 is reconstructed with the following
increment operation?

i = 6
$(i++); print $7, NF

When $(i++) is evaluated or when you print $7, NF or it is not reconstructed
at all ????
I f the input file has 10 lines, then i will be ten greater than its initial
value of 6.  Will NF be 10 + 6 after the program ends?  Will $0 be
reconstructed 10 times?  Write a test program that tests these questions.

Thanks in advance dudes
Romiko



Sat, 19 Jan 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Book on SED and AWK in Language Research

2. Books on awk or sed

3. Newbie awk (sed??) question, regular expressions

4. Awk/Sed Filehandler question

5. A very simple question on SED or AWK for a GURU, and an enjoyable problem

6. awk or sed: basic? question

7. Question: How to remove END OF LINE using AWK or SED

8. awk vs. sed question

9. Sed/awk question

10. Sed/awk question Answered!

11. An Awk Program to Create an Awk Program [Long]

12. Books on AWK programming

 

 
Powered by phpBB® Forum Software