🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Recortar una cadena por la derecha.

#13356
From: Ignacio Arenaza
Date: Tue, 06 Mar 2001 22:10
32 lines
1805 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Han" == Han Solo <hsolo@escomposlinux.org> writes:

    Han> directamente, sin tener que despomprimirlos antes. Lo que
    Han> necesito es pasar de fichero.dvi.gz a fichero.dvi (como
    Han> cadena).

bash es tu amigo (puede que otros shell tengan esto tambien, pero no
lo se).

        ficherogz=fichero.dvi.gz
        fichero=${ficherogz%*.gz}
        echo $fichero

hay unas cuantas expresiones mas de estas de expansion que permiten
hacer cosas muy interesantes.

Saludos. I�aki.

- -- 
  Get PGP/GPG Keys at http://www.escomposlinux.org/iarenaza/pgpkey.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Processed by Mailcrypt and GPG

iD8DBQE6pWBaZXLnGT1HLgcRAhDaAJ9ylaIc20ny5tG28fFsPXQZ0yGgZgCeJF3Q
jOIOyoYlryZgT/FAljJoe/w=
=yrZE
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87y9uia6qt.fsf@eb2ebu.ampr.org>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail
References: <87bsrf6k6o.fsf@alderaan.maptel.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,9d63beb413d64d13
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-03-06 20:14:07 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.bcn.ttd.net!news.bcn.ttd.net!not-for-mail
From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Recortar una cadena por la derecha.
Date: 06 Mar 2001 23:10:34 +0100
Organization: Servidor NNTP de eb2ebu.ampr.org
Lines: 32
Message-ID: <87y9uia6qt.fsf@eb2ebu.ampr.org>
References: <87bsrf6k6o.fsf@alderaan.maptel.es>
NNTP-Posting-Host: 212-170-185-163.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7