Talk About Network

Google


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: Forced outp...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 2185 of 2317
Post > Topic >>

Re: Forced output on screen

by gazelle@[EMAIL PROTECTED] (Kenny McCormack) Mar 12, 2008 at 09:38 AM

In article
<a9ac3d21-ba1d-4b63-a141-2a0c219eb02a@[EMAIL PROTECTED]
>,
Ben  <benoit.bardet@[EMAIL PROTECTED]
> wrote:
>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

Assuming Unix, you can use /dev/tty:

END {
    print "You wrote " i " lines" > "/dev/tty"
}

>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.

Note: You could also use standard error - there are pluses and minuses
to that.
 




 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 Sat Jul 26 2:32:45 CDT 2008.