🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1612

Re: Ayuda BATCH

#1612
From: Mauricio Gomez
Date: Sat, 15 Jul 2006 16:11
39 lines
1872 bytes
F*ck, sab�a que ten�a que existir algo para numerar las lineas.


rro


Cristian Gutierrez wrote:
> Hoy en la ma~nana, Mauricio Gomez dijo:
> 
>>Cristian Gutierrez wrote:
>>
>>>Ayer en la noche, Mauricio Gomez dijo:
> 
> 
> [...]
> 
> 
>>>>#!/bin/sh
>>>>for archivo in *.jpg
>>>>do
>>>>    contador=$((contador + 1))
>>>>    echo $contador\_$archivo
>>>>done
>>>
>>>Si estamos con esas, se puede bajar Perl (de Cygwin o ActiveState) y
>>>hacer algo asi:
>>>$ perl -e 'map { printf "%d__%s\n", ++$n, $_ } @ARGV' *.jpg
>>
>>:p
>>
>>ls *.jpg | awk '{print ++k "_" $1}'
> 
> 
> Ok, con dos procesos entonces:
> 
>   ls *.jpg | nl -s _ -w 1
> 
> :D
> 
Technical Details
Message-ID: <e9b440$hin$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail
References: <e96aio$h37$1@news.nivel5.cl> <44b7ea03$1_1@nova.entelchile.net> <e98qsr$rgj$1@manutara.inf.utfsm.cl> <e99e4h$6r9$1@news.nivel5.cl> <e99nuu$9f5$1@news.nivel5.cl> <87psg75wuo.fsf@guti.cl> <e99vbg$b1t$1@news.nivel5.cl> <873bd298kp.fsf@guti.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,229a57d674b0914e
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail
From: Mauricio Gomez <buena@pregunta.com>
Newsgroups: chile.comp.programacion
Subject: Re: Ayuda BATCH
Date: Sat, 15 Jul 2006 12:11:44 -0400
Organization: Varios
Lines: 39
Message-ID: <e9b440$hin$1@news.nivel5.cl>
References: <e96aio$h37$1@news.nivel5.cl> <44b7ea03$1_1@nova.entelchile.net> <e98qsr$rgj$1@manutara.inf.utfsm.cl> <e99e4h$6r9$1@news.nivel5.cl> <e99nuu$9f5$1@news.nivel5.cl> <87psg75wuo.fsf@guti.cl> <e99vbg$b1t$1@news.nivel5.cl> <873bd298kp.fsf@guti.cl>
NNTP-Posting-Host: pc-23-73-104-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.nivel5.cl 1152979905 18007 200.104.73.23 (15 Jul 2006 16:11:45 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sat, 15 Jul 2006 16:11:45 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716)
X-Accept-Language: en-us, en
In-Reply-To: <873bd298kp.fsf@guti.cl>