Article View: es.comp.os.linux.programacion
Article #1237Re: BASH SCRIPT y GREP
From: Alberto Cabello Sanchez
Date: Thu, 02 Mar 2006 12:58
Date: Thu, 02 Mar 2006 12:58
16 lines
1355 bytes
1355 bytes
Olaf El Blanco wrote: > > Al querer aprender a programar en BASH me dije, �porque no buscar todos los > archivos bash de mi sistema y aprender de los mejores? > > Entonces: > > Hice algo parecido a: grep '^#!.*/bin/bash' 2>/dev/null 1>listado_ejemplo > grep -l muestra (s�lo) los ficheros coincidentes. As�, grep -rl '^#!.*/bin/bash' /usr/bin/ 2>/dev/null 1>listado_ejemplo hace lo que quieres en /usr/bin
Technical Details
Message-ID:
<du6qka$lc7$1@emma.aioe.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.newsland.it!eleonora.aioe.org!emma.aioe.org!aioe.org!not-for-mailReferences:
<dtpci8$8u6$1@cormoran.emeteo.local> <dtpn8n$ci9$1@cormoran.emeteo.local>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,53d0de41776743f9 X-Google-Attributes: gidf86c8,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.newsland.it!eleonora.aioe.org!emma.aioe.org!aioe.org!not-for-mail From: Alberto Cabello Sanchez <gallina@unex.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: BASH SCRIPT y GREP Date: Thu, 02 Mar 2006 13:58:45 +0100 Organization: Aioe.org NNTP Server Lines: 16 Message-ID: <du6qka$lc7$1@emma.aioe.org> References: <dtpci8$8u6$1@cormoran.emeteo.local> <dtpn8n$ci9$1@cormoran.emeteo.local> NNTP-Posting-Host: 3cPl5SUz8fJiZ7Q2x1hhvA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Accept-Language: es, en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050905