🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: programación en shell

#16891
From: J.A. Gutierrez
Date: Fri, 17 Mar 2000 00:00
21 lines
1503 bytes
Gorka Olaizola <gorka@news.hondarribia.org> wrote:

: espacios el comando "mv" no funciona. �Que hay que poner para que te coja

: for i in * 
: do 
: 	mv $i `echo "$i" | sed s/NON\ SERVIAM\ -\ //g` 

	* usa dobles comillas
	* el '\' no es necesario delante del espacio en sed
	* es mejor encerrar la expresion de sed entre comillas simples

 	mv "$i" "`echo \"$i\" | sed 's/NON SERVIAM - //g'`"
: done


-- 
PGP and other useless info at      \                      Oh, show us the way
http://www.cps.unizar.es/~spd/      \                  to the next whisky bar
finger://daphne.cps.unizar.es/spd    \                           Weill/Bretch
es doloroso ser sabio y descubrir la sopa de ajo                        (Pla)
Technical Details
Message-ID: <8atm8v$mvh$2@news.unizar.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8d2v54.8kb.gorka@conan.hondarribia.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,987c94d0eb2d4b11
X-Google-Attributes: gidf86c8,public
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Subject: Re: programación en shell
Date: 2000/03/17
Message-ID: <8atm8v$mvh$2@news.unizar.es>
X-Deja-AN: 598806834
Content-Transfer-Encoding: 8bit
References: <slrn8d2v54.8kb.gorka@conan.hondarribia.org>
Content-Type: text/plain; charset=ISO-8859-1
X-Complaints-To: usenet@news.unizar.es
X-Trace: news.unizar.es 953310303 23537 155.210.152.20 (17 Mar 2000 16:25:03 GMT)
Organization: Rank
Mime-Version: 1.0
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (IRIX/6.2 (IP22))
NNTP-Posting-Date: 17 Mar 2000 16:25:03 GMT
Newsgroups: es.comp.os.linux.programacion