baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- 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
-
Re: [BL] man2html script
, (continued)
- Re: [BL] man2html script, James Miller, 12/03/2003
- Re: [BL] man2html script, James Miller, 12/03/2003
- Re: [BL] man2html script, 3aoo-cvfd, 12/03/2003
- Re: [BL] man2html script, James Miller, 12/03/2003
- Re: [BL] man2html script, 3aoo-cvfd, 12/04/2003
- Re: [BL] man2html script, jamtat, 12/09/2003
-
Re: [BL] man2html script,
James Miller, 12/04/2003
-
Re: [BL] man2html script,
sindi keesan, 12/04/2003
- Re: [BL] man2html script, 3aoo-cvfd, 12/04/2003
- [BL] photopc, sindi keesan, 12/14/2003
-
Re: [BL] man2html script,
sindi keesan, 12/04/2003
- Re: [BL] man2html script, 3aoo-cvfd, 12/04/2003
Archive powered by MHonArc 2.6.24.