Δημοσιεύτηκε: 29 Νοέμ 2010, 22:44
Ως perl:
έγραψε:$ cat packages | perl -ne '$line++; print $line.":".$1."\n" if m#(.*moo.*)#i;'
399:this is line 399 moo
400:mooo this is line 400