linux user group brescia

immagine del castello

Archivio della mailing list

Shell

Jamil Burner Coordinator LugCD jamil a lugbs.linux.it
Mer 25 Lug 2001 07:36:30 UTC
man grep
cmq vai nella dir che ti interessa e dai il comando:

grep PAROLA *

* s' intende per tutti i files presenti nella directory
Poi se vuoi cercare anche nelle subdirectories ti devi fare uno scriptino
Ciao
Jamil



At 09:07 25/07/2001 +0200, you wrote:

>Ciao a tutti,
>mi servirebbe trovare un comando o script in shell bash per mostrare un
>elenco dei file nei quali e' inclusa una parola  e che mi dicesse a che riga
>si trova. Es:
>
>#nomefile1
>3: wlkemd òlwkemdòwlekmd òlwkem dòlk PAROLA wlejkr òlwekjròlwkje
>#nomefile2
>5: wlkemd òlwkemdòwlekmd òlwkem dòlk PAROLA wlejkr PAROLA
>12: wlkemd òlw PAROLA kemdòwlekmd òlwkem dòlk wlejkr òlwekjròlwkje
>
>Garzie, Angelo




Maggiori informazioni sulla lista Lug