simple line 
Author Message
 simple line

Hello,

what is wrong with the expression:

netstat -i|awk {print $1}?

How is the program correctly written? (It should print the first field from
netstat -i).

Help would be appreciated:




Mon, 24 Feb 2003 14:46:08 GMT  
 simple line

Quote:

> Hello,

> what is wrong with the expression:

> netstat -i|awk {print $1}?

Sholdn't be netstat -i | awk '{print $1}' ?
                             ^          ^
                             |___note___|

--
Maurizio Loreti                         http://www.pd.infn.it/~loreti/mlo.html



Mon, 24 Feb 2003 16:14:31 GMT  
 simple line

Quote:

> Hello,

> what is wrong with the expression:

> netstat -i|awk {print $1}?

> How is the program correctly written? (It should print the first field from
> netstat -i).

> Help would be appreciated:



Your missing some quotes.  The line should be:

netstat -i | awk '{print $1}'

--
Cheers,
Ted J. Loeffelholz
Senior Design Engineer
Caterpillar Inc



Sat, 01 Mar 2003 20:07:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to draw a simple Line?

2. just looking for a little an simple program that write to a digital line(output)

3. SIMPLE 4 line code for LATCH

4. Making a boostrap and simple command-line program

5. AMD K6 vs Pentium performance (8 lines simple code)

6. simple 4 line code for phone dialer

7. a simple helper class for parsing command line options

8. A simple forward chaining system 182 LINES

9. Simple Script to Combine/Seperate Lines of Text

10. simple three line wish script cause core dump.

11. python + simple graphics (lines, circles etc.)

12. Simple question: drawing dashed lines?

 

 
Powered by phpBB® Forum Software