Thread Suche in txt (6 answers)
Opened by Gast at 2004-08-25 11:50

renee
 2004-08-25 12:40
#49624 #49624
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
So könntest Du es machen:
Code: (dl )
1
2
3
4
my $file = '/Pfad/zur/datei.txt';
my $result = `grep -c "^channel" $file`; # Backticks
chomp $result;
print "Es sind $result Kanaele\n";
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Suche in txt