🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Asignar el resultado de una orden a una variable

#10240
From: F
Date: Sat, 16 Mar 2002 19:46
14 lines
1419 bytes
tengo una duda,

�como asigno el recultado de un comando a una varible?

lo estoy intentando con
a='ls -l agenda'
a="ls -l agenda"
a=ls -l agenda
set a='ls -l agenda'

pero no va ninguna

Gracias
F
Technical Details
Message-ID: <OiNk8.121680$EH2.437754@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!newsfeed.bcn.ttd.net!telenews.teleline.es!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,bc8291656fcf43d8,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-16 13:00:40 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!newsfeed.bcn.ttd.net!telenews.teleline.es!not-for-mail
X-Trace-PostClient-IP: 62.175.124.101
From: "F" <jl1234@QUITAESTOteleline.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Asignar el resultado de una orden a una variable
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <OiNk8.121680$EH2.437754@telenews.teleline.es>
Date: Sat, 16 Mar 2002 19:46:54 GMT
NNTP-Posting-Host: 10.20.31.4
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 1016308014 10.20.31.4 (Sat, 16 Mar 2002 20:46:54 MET)
NNTP-Posting-Date: Sat, 16 Mar 2002 20:46:54 MET
Organization: Terra Networks