Leser: 21
1
2
3
4
5
6
7
8
9
10
11
12
<Link Name="WICHTIG\egal\egal\egal" State="1" Timeout="1800" >
<Target Server="ich.bin.der.server" Folder="folder\folder" State="2" />
<Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" />
</Link>
<Link Name="AUCHNETT\egal\egal\egal" State="1" Timeout="1800" >
<Target Server="ich.bin.der.server" Folder="folder\folder" State="2" />
<Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" />
</Link>
<Link Name="WICHTIG\egal\egal\egal" State="1" Timeout="1800" >
<Target Server="ich.bin.der.server" Folder="folder\folder" State="2" />
<Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" />
</Link>
1
2
3
4
5
6
7
8
<Link Name="WICHTIG\egal\egal\egal" State="1" Timeout="1800" >
<Target Server="ich.bin.der.server" Folder="folder\folder" State="2" />
<Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" />
</Link>
<Link Name="WICHTIG\egal\egal\egal" State="1" Timeout="1800" >
<Target Server="ich.bin.der.server" Folder="folder\folder" State="2" />
<Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" />
</Link>
1
2
3
4
<Link Name="AUCHNETT\egal\egal\egal" State="1" Timeout="1800" >
<Target Server="ich.bin.der.server" Folder="folder\folder" State="2" />
<Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" />
</Link>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/usr/bin/perl use strict; use warnings; local $/ = "</Link>\n"; while( my $block = <DATA> ) { print $block if $block =~ /Name="WICHTIG/; } __DATA__ <Link Name="WICHTIG\egal\egal\egal" State="1" Timeout="1800" > <Target Server="ich.bin.der.server" Folder="folder\folder" State="2" /> <Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" /> </Link> <Link Name="AUCHNETT\egal\egal\egal" State="1" Timeout="1800" > <Target Server="ich.bin.der.server" Folder="folder\folder" State="2" /> <Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" /> </Link> <Link Name="WICHTIG\egal\egal\egal" State="1" Timeout="1800" > <Target Server="ich.bin.der.server" Folder="folder\folder" State="2" /> <Target Server=" ich.bin.der.server.nr2 " Folder="folder\folder" State="2" /> </Link>