🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Nombres con espacios

#10342
From: Claudio S.
Date: Sat, 09 Mar 2002 17:40
34 lines
2135 bytes
Lo haces m�s f�cil con:
fichero=$(basename *.001 .001)
cat *.[0-9][0-9][0-9] > "$fichero"

Un saludo.
--claudio--

El Thu, 7 Mar 2002 00:39:07 +0100, Oscar Manuel G�mez Senovilla
<oscar@omgs.es> escribi�:
> Estoy haciendo un ficherito para juntar ficheros con extensi�n .001, .002, 
> etc. Si el nombre no contiene espacios, funciona bien, pero me falla cuando 
> el nombre contiene espacios. He probado a poner comillas en todos los 
> sitios que se me ha ocurrido pero no doy con ello. Seguro que es una 
> tonter�a.
> 
> Aqu� est� la �ltima prueba del sustituto de "hpjsplit.exe".
> 
> #!/bin/sh
> fichero=`basename "$(ls *.001)" .001`
> rm -f $fichero
> for t in "$(ls -1b ${fichero}.[0-9]*)"; do
>     cat "$t">> $fichero
> done
> 
> Otra posibilidad ser�a renombrar todos los ficheros a algo que no tuviese 
> espacios, pero no me he puesto a ello.
> 
> Saludos.
> 
> -- 
> |----------------------------------------------------------------------|
> | http://counter.li.org info: Linux user: 92390 - Linux machine: 39301 |
> |     Oscar Manuel G�mez Senovilla - mailto:omgs@BORRARfindhere.com    |
> |----------------------------------------------------------------------|
Technical Details
Message-ID: <3ehd6a.8l5.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!139.red-80-59-173.pooles.rima-tde.NET!not-for-mail
References: <a669ar$s70$1@omgs.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,ac8caad848db229f
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-09 18:21:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!139.red-80-59-173.pooles.rima-tde.NET!not-for-mail
From: "Claudio S." <claudio@dev.null.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Nombres con espacios
Date: Sat, 9 Mar 2002 18:40:19 +0100
Lines: 34
Message-ID: <3ehd6a.8l5.ln@127.0.0.1>
References: <a669ar$s70$1@omgs.es>
NNTP-Posting-Host: 139.red-80-59-173.pooles.rima-tde.net (80.59.173.139)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1015726889 14297486 80.59.173.139 (16 [130458])
X-Orig-Path: 127.0.0.1!nobody
User-Agent: slrn/0.9.7.3 (Linux)