🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10254

Re: Asignar el resultado de una orden a una variable

#10254
From: Benjamín Albiñana
Date: Sun, 17 Mar 2002 12:20
26 lines
1787 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  Cuando: Sat, 16 Mar 2002 19:46:54 GMT
  Quien: F <jl1234@QUITAESTOteleline.es>
  Que: Asignar el resultado de una orden a una variable

> �como asigno el recultado de un comando a una varible?
> 
> lo estoy intentando con
> a='ls -l agenda'
> (...)

  a=$(ls -l agenda)

- -- 
Benjam�n Albi�ana P�rez
http://www.escomposlinux.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8lIoA633hg168lHwRAvbrAJ9Fr2D9kxKNzs5IojJhZmyRCbWm1ACeMe3r
/p05Hc66G2DvIS/Xhj5ywUE=
=B9nN
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrna992ft.bni.benjamin@lamanonegra.net.dhis.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!62.24.128.9.MISMATCH!news-1.opaltelecom.net!newsfeed.wirehub.nl!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!217-127-137-188.uc.nombres.ttd.ES!not-for-mail
References: <OiNk8.121680$EH2.437754@telenews.teleline.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,bc8291656fcf43d8
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-17 05:14:33 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!62.24.128.9.MISMATCH!news-1.opaltelecom.net!newsfeed.wirehub.nl!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!217-127-137-188.uc.nombres.ttd.ES!not-for-mail
From: Benjamín Albiñana
 <benjamin@lamanonegra.net.dhis.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Asignar el resultado de una orden a una variable
Date: Sun, 17 Mar 2002 13:20:17 +0100
Organization: Something completely different
Lines: 26
Message-ID: <slrna992ft.bni.benjamin@lamanonegra.net.dhis.org>
References: <OiNk8.121680$EH2.437754@telenews.teleline.es>
Reply-To: benalb@escomposlinux.org
NNTP-Posting-Host: 217-127-137-188.uc.nombres.ttd.es (217.127.137.188)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1016370208 4291519 217.127.137.188 (16 [31308])
X-Orig-Path: 127.0.0.1!nobody
User-Agent: slrn/0.9.7.3 (Linux)