Computing.Net > Forums > Unix > how I can make ?

how I can make ?

Reply to Message Icon

Original Message
Name: mgonzalo
Date: September 28, 2004 at 02:00:17 Pacific
Subject: how I can make ?
OS: w98se
CPU/Ram: PIII 500Mhz
Comment:

how I can make so that it leaves me in the same one it lines the following thing:

echo "usuarios conectados a m_based: " | netstat -a |grep m_based |wc | cut -c 1-10 ?

usuarios conectados a m_based: 8


Thank


Report Offensive Message For Removal


Response Number 1
Name: Don Arnett
Date: September 28, 2004 at 09:04:57 Pacific
Subject: how I can make ?
Reply: (edit)

If I understand your question correctly:


echo "usuarios conectados a m_based:" `netstat -a | grep m_based | wc -l`


Notice that the double quotes around the title and the backward single quotes around the commands, without a | between.

Also, notice that "wc -l" does the same as "wc | cut -c 1-10"



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: how I can make ?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software