[wplug] very simple bash question..

Chris Romano romano.chris at gmail.com
Thu Mar 17 09:21:35 EST 2005


On Thu, 17 Mar 2005 09:18:54 -0500, Mike <techmike at gmail.com> wrote:
> How would I store a programs output to a variable?
> 
> I want to take the output of
> 
> ps aux | wc -l
> 
> and store it so I can do some math with it.
> 
> 

var=`ps aux | wc -l`

make sure there are no spaces between the "="

Chris Romano


More information about the wplug mailing list