Thread String suchen und danach löschen (8 answers)
Opened by cohama at 2011-10-28 14:41

suresh
 2011-10-28 15:03
#153634 #153634
User since
2010-10-12
109 Artikel
BenutzerIn
[default_avatar]
Lässt nur noch das übrig, was hinter dem Label steht:

Code (perl): (dl )
1
2
3
4
5
6
7
#liest Textfile von der Kommandozeile
while (<>) {
  chomp;
  if (/Label:(.*?)$/) {
    print "$1\n";
  }
}


Output sähe dann so aus:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 +======================================================+
| Coverages Values |
| |
+------------------------------------------------------+
| ID State Offset RSSI |
| 0001 active -184 -74 |
| 0002 active -376 -85 |
| 0005 active -568 -70 |
| 0004 active -88 -68 |
| 0028 active -472 -70 |
| 0023 active -472 -93 |
| 0027 active -472 -93 |
| 003A active -472 -96 |
+------------------------------------------

View full thread String suchen und danach löschen