how to change the existing printed line in AWK

Posted by manimaran on Super User See other posts from Super User or by manimaran
Published on 2011-03-01T09:55:39Z Indexed on 2011/03/06 8:12 UTC
Read the original article Hit count: 153

Filed under:
|
|

Hi, when i execute the following line, its prints the words in newline. awk 'BEGIN { print "line one\nline two\nline three" }' like line one line two line three

How can i print the info in the same line with flush the existing line. For example, while executing the loop, it should print 'one' then wipe out the line and prints 'two' then wipe out the line and prints 'three' etc. can you please assist me?

© Super User or respective owner

Related posts about unix

Related posts about scripting