Cancellare una particolare linea in un file con sed: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

22 August 2011

26 May 2009

  • curprev 08:1208:12, 26 May 2009 Gabriele.vivinetto talk contribs m 342 bytes +342 New page: Questo comando cancella tutte le righe nel file /tmp/data.txt che contengono la stringa "Windows": sed -i '/Windows/d' /tmp/data.txt Lo switch '''-i''' fa si che il file venga editato "...