🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: como puedo poner ${$#}... (bash scripting)

#10330
From: Rafael Moreno Jimenez
Date: Fri, 08 Mar 2002 07:21
13 lines
1135 bytes
Solucion recursiva:


invertir ()
{
  if [ $# == 1 ] ; then  return ;fi
  shift
  invertir $@
  echo $1
}

invertir $@
echo $1
Technical Details
Message-ID: <74eb6167.0203072321.3dd47c34@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <6XYg8.21115$mz1.323523@telenews.teleline.es> <74eb6167.0203052336.7419a022@posting.google.com> <kLzh8.13075$Uh7.308837@telenews.teleline.es> <a67nv0$laq$1@news.unizar.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f86c8,d3a204f5a4d4aebb
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-07 23:21:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: laocanfei@yahoo.com (Rafael Moreno Jimenez)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: como puedo poner ${$#}... (bash scripting)
Date: 7 Mar 2002 23:21:49 -0800
Organization: http://groups.google.com/
Lines: 13
Message-ID: <74eb6167.0203072321.3dd47c34@posting.google.com>
References: <6XYg8.21115$mz1.323523@telenews.teleline.es> <74eb6167.0203052336.7419a022@posting.google.com> <kLzh8.13075$Uh7.308837@telenews.teleline.es> <a67nv0$laq$1@news.unizar.es>
NNTP-Posting-Host: 194.224.58.36
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1015572109 16987 127.0.0.1 (8 Mar 2002 07:21:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 8 Mar 2002 07:21:49 GMT