Article View: es.comp.os.linux.programacion
Article #7752Re: duda con script de bash
From: Esteban Navarro
Date: Tue, 28 Jan 2003 16:33
Date: Tue, 28 Jan 2003 16:33
31 lines
1845 bytes
1845 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David dijo: >> # m�s cosas del script >> > Y si suponemos que el fichero "entrada.txt" tiene lo siguiente: > pepe:123adee111 > ana:2wdueu222 > manolo:238982js > �Tambien me servira para borrar la linea entera? > Es decir, que yo le paso el nombre del usuario (pepe, ana, etc) a borrar y > me elimina toda la linea. Tambi�n si no quieres borrar toda la linea puedes usar cut: grep -v pepe fichero | cut -c 6-14 > fichero2 - -- Esteban Navarro Manuales enlaces y programacion en Linux: http://www.personal.able.es/ensoriano -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+NrDqoVO1uCntWAwRAol3AJ0WfJEyLU90vN9agpQwGqKR8CYJTACfaC2b BHaSiIpWlDYwDOHm1gUGL34= =404L -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<b16bca$t0u7k$1@ID-158006.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!62.101.160.33!not-for-mailReferences:
<3E32BC97.BE023DEF@menta.net> <slrnb36b0t.hg.arbeizaf@jupiter.olimpo> <slrnb3appd.bch.marmolejo@porta.til> <3E36949B.8F1ECC6C@menta.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,8fbbda953043e037 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-01-28 08:33:32 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!62.101.160.33!not-for-mail From: Esteban Navarro <scandisk@able.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: duda con script de bash Date: Tue, 28 Jan 2003 17:33:46 +0100 Lines: 31 Message-ID: <b16bca$t0u7k$1@ID-158006.news.dfncis.de> References: <3E32BC97.BE023DEF@menta.net> <slrnb36b0t.hg.arbeizaf@jupiter.olimpo> <slrnb3appd.bch.marmolejo@porta.til> <3E36949B.8F1ECC6C@menta.net> NNTP-Posting-Host: 62.101.160.33 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: fu-berlin.de 1043771595 30439668 62.101.160.33 (16 [158006]) User-Agent: KNode/0.7.1