Skip to Content.
Sympa Menu

baslinux - Re: [BL] man2html script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: 3aoo-cvfd AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] man2html script
  • Date: Fri, 5 Dec 2003 13:57:43 +1300

jimd wrote:
>
> How can standard output be made into an environment varible?

I'm not sure exactly what you are asking. However,
to take the output of a process and put it into a
variable, you can use the back-quotes. Like this:
---------------------
x=`cat /etc/HOSTNAME`
echo $x
---------------------

If your output consists of many words, each word can
be put into a separate variable like this:
-------------
set -- `ls /`
echo $1
echo $2
echo $3
echo $4
echo $5
-------------

Is that the sort of thing you were looking for?

Cheers,
Steven




Archive powered by MHonArc 2.6.24.

Top of Page