Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
domanda su grep
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
enrico tognoni  
View profile   Translate to Translated (View Original)
 More options Nov 12 2012, 6:15 am
Newsgroups: it.comp.os.linux.iniziare
From: enrico tognoni <etogn...@live.it>
Date: Mon, 12 Nov 2012 12:15:51 +0100
Local: Mon, Nov 12 2012 6:15 am
Subject: domanda su grep
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Crononauta  
View profile  
 More options Nov 12 2012, 6:31 am
Newsgroups: it.comp.os.linux.iniziare
From: Crononauta <massimo.bacili...@gmail.com>
Date: Mon, 12 Nov 2012 12:31:00 +0100
Subject: Re: domanda su grep
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bc  
View profile   Translate to Translated (View Original)
 More options Nov 15 2012, 6:48 am
Newsgroups: it.comp.os.linux.iniziare
From: bc <n...@none.none>
Date: Thu, 15 Nov 2012 12:48:39 +0100
Local: Thurs, Nov 15 2012 6:48 am
Subject: Re: domanda su grep
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

sudo grep -R -I -s -D skip /etc -n -i -e"Stringadacercare"

-R      Scansiona la directory in modo ricorsivo
-I      Ignora i file binari
-s      Evita di lamentarsi par i file non trovati (file non regolari)
-D skip Salta i file di pipe
-n      mostra il numero di linea
-i      Ignora differenze maiuscole / minuscole
-e "pattern"  -e imposta il pattern di ricerca

/etc è la dir dove si sta provando la ricerca.... metti quello che ti pare


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »