Paolo Miotto scrisse in data 19/06/2014 12:34:

Quoting Simone Rossetto <[email protected]>:

Non credo che con grep tu possa ottenere quello che ti serve perché il grep restituisce in output l'intera riga in cui si è verificato il match, ossia
se anche fai il match lazy (come giustamente suggerito da Gian Uberto)
l'output è comunque tutta la riga.

man grep
[...]
       -o, --only-matching
Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.
Grazie Paolo, in effetti avevo dimenticato di inserire l'opzione -o di grep nell'esempio madre.

Piviul


--
Per REVOCARE l'iscrizione alla lista, inviare un email a [email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]

Rispondere a