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 > Forced output o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 2185 of 2236
Post > Topic >>

Forced output on screen

by Ben <benoit.bardet@[EMAIL PROTECTED] > Mar 12, 2008 at 02:29 AM

Hi all,

I 'd like to know how to send an output in the Terminal.

for example :
$ awk -f example.awk toto.dat > OUT.dat

there is example. awk

BEGIN {
      i = 0
}

{
   print $0
   i++
}

END {
    print "You wrote " i " lines" > terminal
}


What is the command for replacing terminal, because I don't want my
last sentence to be written in OUT.dat but in the screen, to inform
the user.

Thanks.




 8 Posts in Topic:
Forced output on screen
Ben <benoit.bardet@[EM  2008-03-12 02:29:47 
Re: Forced output on screen
gazelle@[EMAIL PROTECTED]  2008-03-12 09:38:41 
Re: Forced output on screen
Joel Reicher <joel@[EM  2008-03-12 09:56:02 
Re: Forced output on screen
Ed Morton <morton@[EMA  2008-03-12 07:33:20 
Re: Forced output on screen
Ben <benoit.bardet@[EM  2008-03-12 05:39:39 
Re: Forced output on screen
Ed Morton <morton@[EMA  2008-03-12 07:50:57 
Re: Forced output on screen
Ben <benoit.bardet@[EM  2008-03-12 05:45:07 
Re: Forced output on screen
Ben <benoit.bardet@[EM  2008-03-12 05:50:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed May 14 13:09:58 CDT 2008.