Il 12/11/2012 12:15, enrico tognoni ha scritto:
> Quando faccio il comando
> grep -R "fsck" *
> ricevo messaggi che interrompono la ricerca tipo:
> la directory tal dei tali non esiste e il lavoro si interrompe, come
> posso fare a far continuare la ricerca in caso di errore?
> grep: system/network.target.wants/NetworkManager-wait-online.service:
> File o directory non esistente
Prova con -s in aggiunta:
grep -sR "fsck" *
dal man di grep:
-s, --no-messages
Suppress error messages about nonexistent or unreadable files.
Portability note: unlike GNU grep, 7th Edition Unix grep did not
conform to POSIX, because it lacked -q and its -s option behaved
like GNU grep's -q option. USG-style grep also lacked -q but
its -s option behaved like GNU grep. Portable shell scripts
should avoid both -q and -s and should redirect standard and
error output to /dev/null instead. (-s is specified by POSIX.)
--
Massimo Bacilieri AKA Crononauta